Skip to content

Commit ea9b88e

Browse files
Fix unit test error
1 parent ae76261 commit ea9b88e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/src/image/image.dart

+5-4
Original file line numberDiff line numberDiff line change
@@ -927,17 +927,18 @@ class Image extends Iterable<Pixel> {
927927
}
928928
}
929929

930-
int _numPixelColors(Format format) => format == Format.uint1
930+
int _numPixelColors(
931+
Format
932+
format) => /*format == Format.uint1
931933
? 2
932934
: format == Format.uint2
933935
? 4
934936
: format == Format.uint4
935937
? 16
936938
: format == Format.uint8
937939
? 256
938-
: format == Format.uint16
939-
? 65536
940-
: 0;
940+
:*/
941+
format == Format.uint16 ? 65536 : 256;
941942

942943
Palette? _createPalette(
943944
Format format, Format paletteFormat, int numChannels) {

0 commit comments

Comments
 (0)