Skip to content

Commit

Permalink
chore(*) silence unwanted lints
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jun 14, 2022
1 parent 31b7eff commit 3bfab37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/controllers/gateway/gateway_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ func getListenerStatus(
if len(reason) > 0 {
newConditions := []metav1.Condition{}
for _, cond := range statuses[listener.Name].Conditions {
switch gatewayv1alpha2.ListenerConditionType(cond.Type) {
// shut up linter, there's a default
switch gatewayv1alpha2.ListenerConditionType(cond.Type) { //nolint:exhaustive
case gatewayv1alpha2.ListenerConditionReady, gatewayv1alpha2.ListenerConditionConflicted:
continue
default:
Expand Down
2 changes: 1 addition & 1 deletion internal/controllers/gateway/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func debug(log logr.Logger, obj client.Object, msg string, keysAndValues ...inte
}

// info is an alias for the longer log.V(util.InfoLevel).Info for convenience
func info(log logr.Logger, obj client.Object, msg string, keysAndValues ...interface{}) {
func info(log logr.Logger, obj client.Object, msg string, keysAndValues ...interface{}) { //nolint:unparam
keysAndValues = append([]interface{}{
"namespace", obj.GetNamespace(),
"name", obj.GetName(),
Expand Down

0 comments on commit 3bfab37

Please sign in to comment.