Skip to content

Commit

Permalink
Fix putting constant on left side of equality operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Gennadiy Anisimov committed Jul 30, 2024
1 parent aeaf260 commit 096e7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Source convert(SourceRequest request) {
source.setKeyfileName(request.getKeyfileName());
source.setKrbAdminServer(request.getKrbAdminServer());
source.setKrbAuthMethod(KerberosAuthMechanism.getByName(request.getKrbAuthMethod()));
if (null != request.isCheckConnection()) {
if (request.isCheckConnection() != null) {
source.setCheckConnection(request.isCheckConnection());
}
return source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public SourceInfo updateSource(@PathParam("sourceId") Integer sourceId, @FormDat
}
setKeyfileData(updated, source, file);
transformIfRequired(updated);
if (null == request.isCheckConnection()) {
if (request.isCheckConnection() == null) {
updated.setCheckConnection(source.isCheckConnection());
}
updated.setModifiedBy(getCurrentUser());
Expand Down

0 comments on commit 096e7ed

Please sign in to comment.