Remove nil Annotations check in isGatewayStale
This is redundant as Go implicitly checks for nil when
accessing an element.
@@ -129,11 +129,6 @@ func (i *GatewaySyncer) cleanupStaleGatewayEntries(localGatewayName string) erro
}
func isGatewayStale(gateway v1.Gateway) (bool, error) {
-
- if gateway.ObjectMeta.Annotations == nil {
- return true, nil
- }
-
timestamp, ok := gateway.ObjectMeta.Annotations[updateTimestampAnnotation]
if !ok {
return true, fmt.Errorf("%q annotation not found", updateTimestampAnnotation)
