Skip to content

Commit d3c4aa1

Browse files
committed
fix: redundant match
1 parent 3effac1 commit d3c4aa1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rewatch/src/config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ impl PackageSpec {
159159
}
160160

161161
pub fn is_common_js(&self) -> bool {
162-
match self.module.as_str() {
163-
"commonjs" => true,
164-
_ => false,
165-
}
162+
self.module.as_str() == "commonjs"
166163
}
167164

168165
pub fn get_suffix(&self) -> Option<String> {

0 commit comments

Comments
 (0)