Skip to content

Commit f78012b

Browse files
authored
simplify the code
1 parent d3e27bc commit f78012b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uucore/src/lib/features/checksum/validate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl LineFormat {
283283
let par_idx = rest.iter().position(|&b| b == b'(')?;
284284
// If the parenthesis is the first character (minus whitespace, which has already been stripped out), then,
285285
// it's not a validly formatted line.
286-
if par_idx < 1 {
286+
if par_idx == 0 {
287287
return None;
288288
}
289289
let sub_case = if rest[par_idx - 1] == b' ' {

0 commit comments

Comments
 (0)