Skip to content

Commit

Permalink
chore: Remove redundant initialization and unecessary exception throw
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Oct 30, 2024
1 parent f68a410 commit e0e9af0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void increaseFailedAttempts(User user) throws OHServiceException {
* Reset the number of failed login attempts to zero for {@link User}.
* @param user the {@link User}
*/
public void resetFailedAttempts(User user) throws OHServiceException {
public void resetFailedAttempts(User user) {
ioOperations.updateFailedAttempts(user.getUserName(), 0);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/isf/menu/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class User extends Auditable<String> {
private LocalDateTime lastLogin;

@Column(name = "US_DELETED")
private boolean deleted = false;
private boolean deleted;

@Transient
private volatile int hashCode;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/isf/menu/model/UserGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class UserGroup extends Auditable<String> {
private String desc;

@Column(name = "UG_DELETED")
private boolean deleted = false;
private boolean deleted;

@Transient
private volatile int hashCode;
Expand Down

0 comments on commit e0e9af0

Please sign in to comment.