File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ func (l *Linters) validateAllDisableEnableOptions() error {
38
38
}
39
39
40
40
if len (l .Disable ) != 0 {
41
- return fmt . Errorf ("can't combine options --disable-all and --disable %s" , l . Disable [ 0 ] )
41
+ return errors . New ("can't combine options --disable-all and --disable" )
42
42
}
43
43
}
44
44
45
45
if l .EnableAll && len (l .Enable ) != 0 && ! l .Fast {
46
- return fmt . Errorf ("can't combine options --enable-all and --enable %s" , l . Enable [ 0 ] )
46
+ return errors . New ("can't combine options --enable-all and --enable" )
47
47
}
48
48
49
49
return nil
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ func TestLinters_validateAllDisableEnableOptions_error(t *testing.T) {
185
185
DisableAll : true ,
186
186
Fast : false ,
187
187
},
188
- expected : "can't combine options --disable-all and --disable dupl " ,
188
+ expected : "can't combine options --disable-all and --disable" ,
189
189
},
190
190
{
191
191
desc : "enable-all and enable" ,
@@ -196,7 +196,7 @@ func TestLinters_validateAllDisableEnableOptions_error(t *testing.T) {
196
196
DisableAll : false ,
197
197
Fast : false ,
198
198
},
199
- expected : "can't combine options --enable-all and --enable dupl " ,
199
+ expected : "can't combine options --enable-all and --enable" ,
200
200
},
201
201
}
202
202
You can’t perform that action at this time.
0 commit comments