Skip to content

Commit

Permalink
Merge pull request #119 from DevFactory/release/useless-conditions-sh…
Browse files Browse the repository at this point in the history
…ould-not-be-used-fix-1

Code quality fix - Conditions should not unconditionally evaluate to "TRUE" or to "FALSE".
  • Loading branch information
anujgandharv committed May 25, 2016
2 parents 6e79bb2 + 3cef044 commit 0f66897
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,7 +110,7 @@ public Resource getResource(String location) {
resource = new FileSystemResource(location);
}
}
if(resource == null || !resource.exists()){
if(!resource.exists()){
LOG.error("Could not load the resource with path {} as either a Classpath, FileSystem or a URL resource", location);
Assert.fail("Could not load the resource with path " + location + " as either a Classpath, " +
"FileSystem or a URL resource. Please check the path and try again" );
Expand Down

0 comments on commit 0f66897

Please sign in to comment.