set-account command: Do not close ReviewDb that was injected
The ReviewDb only needs to be closed if it was created by schemaFactory.open() but then the closing should be done in a finally block. Change-Id: Ia0082321455cd383e90f5333680ade5a52331d3a Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -175,8 +175,6 @@ final class SetAccountCommand extends BaseCommand {
|
||||
if (sshKeysUpdated) {
|
||||
sshKeyCache.evict(account.getUserName());
|
||||
}
|
||||
|
||||
db.close();
|
||||
}
|
||||
|
||||
private void addSshKeys(final List<String> keys, final Account account)
|
||||
|
||||
Reference in New Issue
Block a user