Skip to content

Commit

Permalink
fix: remove obsolete check for error
Browse files Browse the repository at this point in the history
  • Loading branch information
drwatsno committed Sep 30, 2021
1 parent 5512749 commit 141c242
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/managers/BaseManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ export abstract class BaseManager {
try {
isKeySuccessfullyLocked = await this.storage.lockKey(context.key);
} catch (keyLockError: unknown) {
if (keyLockError instanceof Error) {
this.logger.error(
`Error occurred while trying to lock key "${context.key}". Reason: ${keyLockError.message}. Running executor`
);
}
this.logger.error(
`Error occurred while trying to lock key "${context.key}". Reason: ${(keyLockError as Error).message}. Running executor`
);

return runExecutor(context.executor);
}
Expand Down

0 comments on commit 141c242

Please sign in to comment.