Skip to content

Commit 210be5a

Browse files
committed
Remove excpetion message checking
1 parent 778fbe1 commit 210be5a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sql/src/main/java/com/coditory/sherlock/SqlDistributedLockConnector.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ private boolean insertLock(SqlConnection connection, LockRequest lockRequest, In
114114
setupOptionalTimestamp(statement, 4, expiresAt);
115115
return statement.executeUpdate() > 0;
116116
} catch (SQLException e) {
117-
if (!e.getMessage().toLowerCase().contains("duplicate")) {
118-
throw e;
119-
}
120117
return false;
121118
}
122119
}

0 commit comments

Comments
 (0)