Skip to content

Commit fec67c3

Browse files
committed
wasm: fix lint #build-wasm
1 parent 2b6ce33 commit fec67c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub(super) fn open_browser_internal(
1212

1313
// always return true for a dry run
1414
if options.dry_run {
15-
if let Some(_) = web_sys::window() {
15+
if web_sys::window().is_some() {
1616
return Ok(());
1717
} else {
1818
return Err(Error::new(ErrorKind::Other, "no browser window available"));

0 commit comments

Comments
 (0)