You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use length check instead of nil slice check. I don't know whether it's legitimate to pass in an initialized but empty slice, but a length check would catch that scenario in addition to an actual nil slice.
The text was updated successfully, but these errors were encountered:
This change accounts for the potential to receive an empty
slice in addition to a nil slice (as we were checking for
prior to this change).
refs GH-104
Current check:
go-nagios/nagios.go
Lines 385 to 389 in b399b44
Use length check instead of nil slice check. I don't know whether it's legitimate to pass in an initialized but empty slice, but a length check would catch that scenario in addition to an actual nil slice.
The text was updated successfully, but these errors were encountered: