рефакторинг. избыточный код. зачем то был абстрактный метод

This commit is contained in:
2024-10-12 00:28:58 +03:00
parent c826b4a4bd
commit 09b64218bd
27 changed files with 3 additions and 177 deletions

View File

@@ -14,10 +14,6 @@ public class AddMachine extends AddObjectPass<Machine> {
super(Machine.class);
}
@Override
protected Database getDb() {
return Global.mainModule.getDb();
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (super.canStart(args)) {
if (target.type.equals(MachineType.Local) && Global.mainModule.getDb().machines.LocalMachineExists()) {