From b8068370b3408679d53627b5e2aae7309c50239a Mon Sep 17 00:00:00 2001 From: Georges Varouchas Date: Thu, 23 Sep 2021 14:43:26 +0200 Subject: [PATCH] fix cache condition in iswin_wasm (#1630) --- internal/fs/iswin_wasm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fs/iswin_wasm.go b/internal/fs/iswin_wasm.go index f135ca4d0b9..b44a60e06dc 100644 --- a/internal/fs/iswin_wasm.go +++ b/internal/fs/iswin_wasm.go @@ -12,7 +12,7 @@ var cachedIfWindows bool func CheckIfWindows() bool { if !checkedIfWindows { - cachedIfWindows = false + checkedIfWindows = true // Hack: Assume that we're on Windows if we're running WebAssembly and // the "C:\\" directory exists. This is a workaround for a bug in Go's