Skip to content

Commit 25093ec

Browse files
committed
linting
1 parent 560a0e4 commit 25093ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/apitypings/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"fmt"
55
"log"
66

7+
"golang.org/x/xerrors"
8+
79
"github.com/coder/guts"
810
"github.com/coder/guts/bindings"
911
"github.com/coder/guts/config"
@@ -104,7 +106,7 @@ func TypeMappings(gen *guts.GoParser) error {
104106
"encoding/json.RawMessage": "map[string]string",
105107
})
106108
if err != nil {
107-
return fmt.Errorf("include custom: %w", err)
109+
return xerrors.Errorf("include custom: %w", err)
108110
}
109111

110112
return nil

0 commit comments

Comments
 (0)