Skip to content

Commit 4c31ffd

Browse files
committed
remove an unnecessary check
1 parent fbe81a8 commit 4c31ffd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/algorithm/pervade.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ where
6363
}
6464

6565
pub(crate) fn pervade_dim(a: usize, b: usize) -> usize {
66-
if a == b {
67-
a
68-
} else if a == 1 {
66+
if a == 1 {
6967
b
7068
} else if b == 1 {
7169
a

0 commit comments

Comments
 (0)