1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 03:26:18 +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 input_length = matches.get_one::<usize>(options::LENGTH);
let length = if let Some(length) = input_length { let length = if let Some(length) = input_length {
match length.to_owned() { match length.to_owned() {
n if n == 0 => None, 0 => None,
n if n % 8 != 0 => { n if n % 8 != 0 => {
// GNU's implementation seem to use these quotation marks // GNU's implementation seem to use these quotation marks
// in their error messages, so we do the same. // in their error messages, so we do the same.