Skip to content

Commit bf7a478

Browse files
committed
Fix new clippy lint
1 parent 7d510a3 commit bf7a478

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

turbopack/crates/turbopack-ecmascript/src/source_map.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ fn maybe_decode_data_url(url: &str) -> Option<Rope> {
5656

5757
let data_b64 = if let Some(data) = url.strip_prefix(DATA_PREAMBLE) {
5858
data
59-
} else if let Some(data) = url.strip_prefix(DATA_PREAMBLE_CHARSET) {
60-
data
6159
} else {
62-
return None;
60+
url.strip_prefix(DATA_PREAMBLE_CHARSET)?
6361
};
6462

6563
data_encoding::BASE64

0 commit comments

Comments
 (0)