You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable usestdlibvars linter
This linter recommends using standard library variables rather than
magic constants, so for example 200 is replaced by http.StatusOK.
Signed-off-by: Edu Gómez Escandell <[email protected]>
* Replace magic values with standard library constants
Signed-off-by: Edu Gómez Escandell <[email protected]>
---------
Signed-off-by: Edu Gómez Escandell <[email protected]>
// http.NewRequest can only return error on invalid METHOD, or invalid url. Here the METHOD is always GET, and the url is always valid, thus error cannot happen.
0 commit comments