1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-31 18:31:01 +00:00

Remove Golint

- Golint is deprecated
- Use staticcheck and golangci-lint instead
This commit is contained in:
Frédéric Guillot 2024-02-24 20:44:40 -08:00
parent b48ad6dbfb
commit 420a3d4d95
4 changed files with 15 additions and 8 deletions

View file

@ -12,11 +12,11 @@ import (
// ValidateRange makes sure the offset/limit values are valid.
func ValidateRange(offset, limit int) error {
if offset < 0 {
return fmt.Errorf(`Offset value should be >= 0`)
return fmt.Errorf(`offset value should be >= 0`)
}
if limit < 0 {
return fmt.Errorf(`Limit value should be >= 0`)
return fmt.Errorf(`limit value should be >= 0`)
}
return nil
@ -29,7 +29,7 @@ func ValidateDirection(direction string) error {
return nil
}
return fmt.Errorf(`Invalid direction, valid direction values are: "asc" or "desc"`)
return fmt.Errorf(`invalid direction, valid direction values are: "asc" or "desc"`)
}
// IsValidRegex verifies if the regex can be compiled.