Skip to content

Commit 459c705

Browse files
committed
linting
1 parent c97b231 commit 459c705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/coderd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ func New(options *Options) *API {
13861386
v = strings.TrimSpace(v)
13871387
parts := strings.Split(v, " ")
13881388
if len(parts) < 2 {
1389-
cspParseErrors = errors.Join(cspParseErrors, fmt.Errorf("invalid CSP header %q, not enough parts to be valid", v))
1389+
cspParseErrors = errors.Join(cspParseErrors, xerrors.Errorf("invalid CSP header %q, not enough parts to be valid", v))
13901390
continue
13911391
}
13921392
additionalCSPHeaders[httpmw.CSPFetchDirective(strings.ToLower(parts[0]))] = parts[1:]

0 commit comments

Comments
 (0)