Skip to content

Commit

Permalink
use .next() instead of first() in another instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Sriraam AS committed Mar 2, 2023
1 parent b9e5a4f commit 79416ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class JobHistoryModel(props: Properties) {
prepared.setString(1, triggerName)
prepared.setString(2, triggerGroup)
val rs = prepared.executeQuery()
if (rs.first()) {
if (rs.next()) {
Some(parseJob(rs))
} else {
None
Expand Down

0 comments on commit 79416ec

Please sign in to comment.