refactor: replace key don't auto check on class instantiation

This commit is contained in:
Zack Spear
2024-02-02 16:28:12 -08:00
committed by Zack Spear
parent 7f92fff58c
commit 4622450b45

View File

@@ -23,8 +23,6 @@ class ReplaceKey
$this->guid = @$this->serverState['guid'] ?? null;
$this->keyfile = @$this->serverState['keyfile'] ?? null;
$this->regExp = @$this->serverState['regExp'] ?? null;
$this->check();
}
private function request($url, $method, $payload = null, $headers = null)
@@ -189,6 +187,3 @@ class ReplaceKey
$this->installNewKey($latestKey);
}
}
// self invoke
new ReplaceKey();