Skip to content

Commit f776e8b

Browse files
committed
[fix] removed unnecessary blank line
1 parent 1a862dc commit f776e8b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmdutil/when_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ func TestIsAllowedToExecute(t *testing.T) {
125125
t.Run(tt.name, func(t *testing.T) {
126126
NewWhenEnv = func() *WhenEnv { return &WhenEnv{Env: tt.envset} }
127127
got, err := IsAllowedToExecute(tt.when)
128-
129128
if err != nil {
130129
if tt.errorContains != nil {
131130
if errStr, ok := tt.errorContains.(string); ok {
@@ -141,11 +140,9 @@ func TestIsAllowedToExecute(t *testing.T) {
141140
} else if tt.errorContains != nil {
142141
t.Errorf("Expected an error containing %v", tt.errorContains)
143142
}
144-
145143
if got != tt.want {
146144
t.Errorf("got %v\nwant %v", got, tt.want)
147145
}
148146
})
149147
}
150-
151148
}

0 commit comments

Comments
 (0)