Skip to content

Commit 7fde0a0

Browse files
committed
Format code
1 parent f42f6eb commit 7fde0a0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

errors_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ type myError struct {
1414
detail string
1515
}
1616

17-
var _ ErrorWithStatus = myError{}
18-
var _ ErrorWithDetail = myError{}
17+
var (
18+
_ ErrorWithStatus = myError{}
19+
_ ErrorWithDetail = myError{}
20+
)
1921

2022
func (e myError) Error() string { return "test error" }
2123
func (e myError) StatusCode() int { return e.status }

examples/custom-errors/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ type MyError struct {
1717
Message string `json:"message"`
1818
}
1919

20-
var _ fuego.ErrorWithStatus = MyError{}
21-
var _ fuego.ErrorWithDetail = MyError{}
20+
var (
21+
_ fuego.ErrorWithStatus = MyError{}
22+
_ fuego.ErrorWithDetail = MyError{}
23+
)
2224

2325
func (e MyError) Error() string { return e.Err.Error() }
2426

0 commit comments

Comments
 (0)