Skip to content

Commit 768e437

Browse files
committed
fix: 修复逻辑错误
1 parent 8033fcb commit 768e437

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/style_transform/background/background_image.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,10 @@ impl From<(&Property<'_>, Option<&Property<'_>>)> for BackgroundImage {
233233
background_image_res = parse_background_image(
234234
value,
235235
background_image_repeat
236-
.map(|item| match item {
236+
.and_then(|item| match item {
237237
Property::BackgroundRepeat(value) => Some(value),
238238
_ => None,
239239
})
240-
.or_else(|| None)
241-
.unwrap(),
242240
);
243241
}
244242
_ => {}

0 commit comments

Comments
 (0)