Skip to content

Commit

Permalink
Remove redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Apr 3, 2022
1 parent 9f53ea4 commit f92f2ce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/com/drew/metadata/png/PngDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ public String getColorTypeDescription()
if (value == null)
return null;
PngColorType colorType = PngColorType.fromNumericValue(value);
if (colorType == null)
return null;
return colorType.getDescription();
}

Expand Down

0 comments on commit f92f2ce

Please sign in to comment.