From fec67c3f355c34567908e83048ebb65ce3a4b918 Mon Sep 17 00:00:00 2001 From: Amod Malviya Date: Sat, 20 Apr 2024 21:24:11 +0530 Subject: [PATCH] wasm: fix lint #build-wasm --- src/wasm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasm.rs b/src/wasm.rs index db68921..383320f 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -12,7 +12,7 @@ pub(super) fn open_browser_internal( // always return true for a dry run if options.dry_run { - if let Some(_) = web_sys::window() { + if web_sys::window().is_some() { return Ok(()); } else { return Err(Error::new(ErrorKind::Other, "no browser window available"));