File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ type myError struct {
14
14
detail string
15
15
}
16
16
17
- var _ ErrorWithStatus = myError {}
18
- var _ ErrorWithDetail = myError {}
17
+ var (
18
+ _ ErrorWithStatus = myError {}
19
+ _ ErrorWithDetail = myError {}
20
+ )
19
21
20
22
func (e myError ) Error () string { return "test error" }
21
23
func (e myError ) StatusCode () int { return e .status }
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ type MyError struct {
17
17
Message string `json:"message"`
18
18
}
19
19
20
- var _ fuego.ErrorWithStatus = MyError {}
21
- var _ fuego.ErrorWithDetail = MyError {}
20
+ var (
21
+ _ fuego.ErrorWithStatus = MyError {}
22
+ _ fuego.ErrorWithDetail = MyError {}
23
+ )
22
24
23
25
func (e MyError ) Error () string { return e .Err .Error () }
24
26
You can’t perform that action at this time.
0 commit comments