mirror of
https://github.com/PretendoNetwork/wiiu-chat-secure.git
synced 2026-04-25 07:53:11 -05:00
should omit comparison to bool constant, can be simplified to ringing (S1002)go-staticcheck
This commit is contained in:
parent
7b766d0f14
commit
0f48fee48e
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user