Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Apr 27, 2021
1 parent 60ad875 commit de26ca2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public boolean canEncodeImage(ImageTypeSpecifier type) {
// TODO: Support all image types, if necessary convert before encoding
int bufferedImageType = type.getBufferedImageType();
return (type.getNumBands() == 3 || type.getNumBands() == 1)
&& (bufferedImageType == TYPE_3BYTE_BGR || bufferedImageType == TYPE_4BYTE_ABGR || bufferedImageType == TYPE_BYTE_GRAY);
&& (bufferedImageType == TYPE_3BYTE_BGR
|| bufferedImageType == TYPE_4BYTE_ABGR
|| bufferedImageType == TYPE_BYTE_GRAY);
}

@Override
Expand Down

0 comments on commit de26ca2

Please sign in to comment.