all repos

onasty @ 2d89a907c4dd03466dc766ed3136fcfd11ca15fe

a one-time notes service
2 files changed, 3 insertions(+), 3 deletions(-)
chore: fix doc comments
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-03-29 14:24:51 +0200
Parent: 445822d
M e2e/e2e_utils_test.go

@@ -18,7 +18,7 @@ e.require.NoError(err)

return r } -// readBodyAndUnjsonify reads body of `httptest.ResponseRecorder` and unmarshalls it into res +// readBodyAndUnjsonify reads body of [httptest.ResponseRecorder] and unmarshalls it into res // // Example: //

@@ -32,7 +32,7 @@ err = json.Unmarshal(respData, &res)

e.require.NoError(err) } -// httpRequest sends http request to the server and returns `httptest.ResponseRecorder` +// httpRequest sends http request to the server and returns [httptest.ResponseRecorder] // content-type always set to application/json func (e *AppTestSuite) httpRequest( method, url string,
M internal/jwtutil/jwtutil.go

@@ -58,7 +58,7 @@ }

func (j *JWTUtil) Parse(token string) (Payload, error) { var claims jwt.RegisteredClaims - _, err := jwt.ParseWithClaims(token, &claims, func(t *jwt.Token) (interface{}, error) { + _, err := jwt.ParseWithClaims(token, &claims, func(t *jwt.Token) (any, error) { if _, ok := t.Method.(*jwt.SigningMethodHMAC); !ok { return nil, ErrUnexpectedSigningMethod }