Skip to content

Commit 077cacf

Browse files
authored
chore: golint compliant
1 parent 2888938 commit 077cacf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

glfw.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ func (m *windowManager) glfwRefreshCallback(window *glfw.Window) {
210210
if width == 0 {
211211
fmt.Println("go-flutter: Cannot calculate pixelsPerScreenCoordinate for zero-width window.")
212212
return
213-
} else {
214-
m.pixelsPerScreenCoordinate = float64(widthPx) / float64(width)
215213
}
214+
m.pixelsPerScreenCoordinate = float64(widthPx) / float64(width)
216215

217216
var pixelRatio float64
218217
if m.forcedPixelRatio != 0 {

0 commit comments

Comments
 (0)