mirror of
https://github.com/PretendoNetwork/wiiu-chat-secure.git
synced 2026-09-12 05:05:29 -05:00
should omit comparison to bool constant, can be simplified to ringing (S1002)go-staticcheck
This commit is contained in:
@@ -58,7 +58,7 @@ func getFriendNotificationData(err error, client *nex.Client, callID uint32, uiT
|
||||
//// HANDLE INCOMING CALL ////
|
||||
|
||||
caller, target, ringing := getCallInfoByTarget(client.PID())
|
||||
if (caller != 0) && (target == client.PID()) && (ringing == true) {
|
||||
if (caller != 0) && (target == client.PID()) && ringing {
|
||||
sendCallNotification(caller, target, callID)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user