mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Uninstallation (#211)
This commit is contained in:
parent
a2de8dea0c
commit
81cdc766b6
4 changed files with 77 additions and 5 deletions
|
@ -63,6 +63,11 @@ class Runtime {
|
|||
toString() {
|
||||
return `${this.language}-${this.version.raw}`;
|
||||
}
|
||||
|
||||
unregister() {
|
||||
const index = runtimes.indexOf(this);
|
||||
runtimes.splice(index, 1); //Remove from runtimes list
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = runtimes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue