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 10, 2022
1 parent 366c8f8 commit 0dc273e
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 0dc273e

Please sign in to comment.