Skip to content

Commit d7fe949

Browse files
authored
fix logically dead code (#472)
Signed-off-by: ningmingxiao <[email protected]>
1 parent f877063 commit d7fe949

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zstd/encoder_options.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,9 @@ func EncoderLevelFromZstd(level int) EncoderLevel {
190190
return SpeedDefault
191191
case level >= 6 && level < 10:
192192
return SpeedBetterCompression
193-
case level >= 10:
193+
default:
194194
return SpeedBestCompression
195195
}
196-
return SpeedDefault
197196
}
198197

199198
// String provides a string representation of the compression level.

0 commit comments

Comments
 (0)