From 974ec525fa9521cbf22bf191b982f79e07ab4a01 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 17 Oct 2020 15:09:12 +0900 Subject: [PATCH] uidriver/glfw: Refactoring --- internal/uidriver/glfw/ui.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 00c13900c..1ce78e148 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -793,8 +793,7 @@ func (u *UserInterface) updateSize() (float64, float64, bool) { // update must be called from the main thread. func (u *UserInterface) update() (float64, float64, bool, error) { - shouldClose := u.window.ShouldClose() - if shouldClose { + if u.window.ShouldClose() { return 0, 0, false, driver.RegularTermination }