File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ func TestDereferencePointers(t *testing.T) {
11
11
12
12
ptr := func (v string ) * string { return & v }
13
13
14
- err := With ("hello" , "world" ).Errorf (assert .AnError .Error ()).(OopsError )
14
+ err := With ("hello" , "world" ).Errorf (assert .AnError .Error ()).(OopsError ) //nolint:govet
15
15
is .EqualValues (map [string ]any {"hello" : "world" }, err .Context ())
16
16
17
- err = With ("hello" , ptr ("world" )).Errorf (assert .AnError .Error ()).(OopsError )
17
+ err = With ("hello" , ptr ("world" )).Errorf (assert .AnError .Error ()).(OopsError ) //nolint:govet
18
18
is .EqualValues (map [string ]any {"hello" : "world" }, err .Context ())
19
19
20
- err = With ("hello" , nil ).Errorf (assert .AnError .Error ()).(OopsError )
20
+ err = With ("hello" , nil ).Errorf (assert .AnError .Error ()).(OopsError ) //nolint:govet
21
21
is .EqualValues (map [string ]any {"hello" : nil }, err .Context ())
22
22
}
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import (
13
13
/// -> Apache 2.0 LICENSE
14
14
///
15
15
16
- type fake struct {}
17
-
18
16
var (
19
17
StackTraceMaxDepth int = 10
20
18
You can’t perform that action at this time.
0 commit comments