Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors: export Status2TerrCode #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
return http.StatusInternalServerError
}

// terr2StatusCode converts HTTP status codes to a roughly equivalent terrors' code

Check failure on line 51 in errors.go

View workflow job for this annotation

GitHub Actions / test (1.17.x, ubuntu-latest)

comment on exported function Status2TerrCode should be of the form "Status2TerrCode ..."

Check failure on line 51 in errors.go

View workflow job for this annotation

GitHub Actions / test (1.18.x, ubuntu-latest)

comment on exported function Status2TerrCode should be of the form "Status2TerrCode ..."
func status2TerrCode(code int) string {
func Status2TerrCode(code int) string {
if c, ok := mapStatus2Terr[code]; ok {
return c
}
Expand Down
Loading