Skip to content

Commit

Permalink
fix cache condition in iswin_wasm (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeGEC authored Sep 23, 2021
1 parent 67ce58c commit b806837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fs/iswin_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b806837

Please sign in to comment.