diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index b377b0d31..8fb3e4821 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -49,8 +49,7 @@ func CurrentUI() *UserInterface { func Init() (*opengl.Context, error) { runtime.LockOSThread() - err := glfw.Init() - if err != nil { + if err := glfw.Init(); err != nil { return nil, err } glfw.WindowHint(glfw.Visible, glfw.False)