Skip to content

Commit

Permalink
fix logically dead code (#472)
Browse files Browse the repository at this point in the history
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
  • Loading branch information
ningmingxiao committed Jan 18, 2022
1 parent f877063 commit d7fe949
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zstd/encoder_options.go
Expand Up @@ -190,10 +190,9 @@ func EncoderLevelFromZstd(level int) EncoderLevel {
return SpeedDefault
case level >= 6 && level < 10:
return SpeedBetterCompression
case level >= 10:
default:
return SpeedBestCompression
}
return SpeedDefault
}

// String provides a string representation of the compression level.
Expand Down

0 comments on commit d7fe949

Please sign in to comment.