Skip to content

Commit

Permalink
Simplify hasClassifier
Browse files Browse the repository at this point in the history
We can remove all branching from this method and return the check
directly.
  • Loading branch information
rhowe committed Aug 13, 2022
1 parent d26c272 commit 611bc67
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -335,13 +335,7 @@ private boolean projectHasAlreadySetAnArtifact()
*/
protected boolean hasClassifier()
{
boolean result = false;
if ( getClassifier() != null && getClassifier().trim().length() > 0 )
{
result = true;
}

return result;
return getClassifier() != null && getClassifier().trim().length() > 0;
}

private String[] getIncludes()
Expand Down

0 comments on commit 611bc67

Please sign in to comment.