Skip to content

Commit

Permalink
gamemode.go: simplify return
Browse files Browse the repository at this point in the history
Co-authored-by: sewn <[email protected]>
Signed-off-by: Jrelvas <[email protected]>
  • Loading branch information
jrelvas-ipc and apprehensions authored Nov 24, 2023
1 parent 815f6a6 commit 93f49f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/bus/gamemode.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@ func (s *SessionBus) GamemodeRegister(pid int) (bool, error) {

response := call.Body[0].(int32)

if response < 0 {
return false, nil
}

return true, nil
return response > 0, nil
}

0 comments on commit 93f49f8

Please sign in to comment.