1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-14 19:16:17 +00:00

cksum: remove redundant guard

This commit is contained in:
Vardhan Patil 2023-12-30 20:39:09 +05:30
parent 1fc6a760f3
commit d990021572

View file

@ -245,7 +245,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let input_length = matches.get_one::<usize>(options::LENGTH);
let length = if let Some(length) = input_length {
match length.to_owned() {
n if n == 0 => None,
0 => None,
n if n % 8 != 0 => {
// GNU's implementation seem to use these quotation marks
// in their error messages, so we do the same.