diff options
| author | Shulhan <ms@kilabit.info> | 2024-01-25 19:32:48 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-01-25 19:45:46 +0700 |
| commit | 099ccef4614d8b3ba19f44c50ef984631d161240 (patch) | |
| tree | a31565d4ec4cc911735c086c35da8d89d689ac3e /errors.go | |
| parent | 7d3ce2ca01f2d4954d89430e48ca23c89416668b (diff) | |
| download | gorankusu-099ccef4614d8b3ba19f44c50ef984631d161240.tar.xz | |
all: fix warnings recommended by linter revive
Most of the fixes related to naming variables with acronyms, for example
HTTP, JSON, URL, and so on.
Diffstat (limited to 'errors.go')
| -rw-r--r-- | errors.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,7 +16,7 @@ func errAttackConflict(rr *RunRequest) error { E: liberrors.E{ Code: http.StatusConflict, Message: fmt.Sprintf(`Another attack is already running: "%s/%s`, - rr.Target.Name, rr.HttpTarget.Name), + rr.Target.Name, rr.HTTPTarget.Name), Name: "ERR_ATTACK_CONFLICT", }, Data: rr, @@ -76,11 +76,11 @@ func errInvalidTarget(id string) error { return res } -func errInvalidHttpTarget(id string) error { +func errInvalidHTTPTarget(id string) error { res := &libhttp.EndpointResponse{ E: liberrors.E{ Code: http.StatusBadRequest, - Message: fmt.Sprintf("invalid or emtpy HttpTarget.ID: %q", id), + Message: fmt.Sprintf("invalid or emtpy HTTPTarget.ID: %q", id), Name: "ERR_INVALID_HTTP_TARGET", }, } |
