mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-06 23:41:33 +01:00
Fixed a bug where empty optional is always returned (Registered: -)
This commit is contained in:
parent
1241019fa4
commit
7af6cd238f
@ -425,7 +425,7 @@ public class UsersTable extends UserIDTable {
|
|||||||
@Override
|
@Override
|
||||||
public Optional<Long> processResults(ResultSet set) throws SQLException {
|
public Optional<Long> processResults(ResultSet set) throws SQLException {
|
||||||
if (set.next()) {
|
if (set.next()) {
|
||||||
Optional.of(set.getLong(columnRegistered));
|
return Optional.of(set.getLong(columnRegistered));
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user