Skip to content

Commit

Permalink
Fix compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Nov 2, 2024
1 parent df499f5 commit 8fd3af6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/edge/create_env_native.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func createCoreWebView2EnvironmentWithOptions(browserExecutableFolder, userDataF
return fmt.Errorf("Error calling UTF16PtrFromString for %s: %v", userDataFolder, err)
}

hr, err = webviewloader.CreateCoreWebView2EnvironmentWithOptions(
hr, err := webviewloader.CreateCoreWebView2EnvironmentWithOptions(
browserPathPtr,
userPathPtr,
uintptr(unsafe.Pointer(environmentCompletedHandle)),
Expand All @@ -34,10 +34,7 @@ func createCoreWebView2EnvironmentWithOptions(browserExecutableFolder, userDataF
}

if hr != 0 {
if err == nil || err == windows.ERROR_SUCCESS {
err = syscall.Errno(hr)
}
return err
return syscall.Errno(hr)
}

return nil
Expand Down

0 comments on commit 8fd3af6

Please sign in to comment.