Skip to content

Commit a747f45

Browse files
nicoburnscmyr
authored andcommitted
Fix clippy::obfuscated_if_else lint
Signed-off-by: Nico Burns <[email protected]>
1 parent 244c4ec commit a747f45

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

read-fonts/src/tables/variations.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,11 @@ impl<'a> TupleVariationHeader<'a> {
226226
} else {
227227
Default::default()
228228
}
229-
+ index
230-
.intermediate_region()
231-
.then_some(tuple_byte_len * 2)
232-
.unwrap_or_default()
229+
+ if index.intermediate_region() {
230+
tuple_byte_len * 2
231+
} else {
232+
Default::default()
233+
}
233234
}
234235
}
235236

0 commit comments

Comments
 (0)