summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.go b/main.go
index ce66591..a5b4269 100644
--- a/main.go
+++ b/main.go
@@ -121,8 +121,5 @@ func doOnShouldQuit(unused unsafe.Pointer) C.int {
if shouldQuitFunc == nil {
return 0
}
- if shouldQuitFunc() {
- return 1
- }
- return 0
+ return frombool(shouldQuitFunc())
}