should omit comparison to bool constant, can be simplified to ringing (S1002)go-staticcheck

This commit is contained in:
Jonathan Barrow 2022-09-03 01:12:46 -04:00
parent 7b766d0f14
commit 0f48fee48e
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F

View File

@ -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)
}
}