chore: remove unused linter directives

This commit was moved from ipfs/go-ipfs-http-client@c4fc1a7740
This commit is contained in:
galargh 2022-10-01 17:37:23 +02:00
parent 0fff1d5d8e
commit 1193b2978f

View File

@ -49,7 +49,6 @@ func parseErrNotFoundWithFallbackToError(msg error) error {
return msg
}
//lint:ignore ST1008 this function is not using the error as a mean to return failure but it massages it to return the correct type
func parseErrNotFound(msg string) (error, bool) {
if msg == "" {
return nil, true // Fast path
@ -72,7 +71,6 @@ func parseErrNotFound(msg string) (error, bool) {
// - Double Quotes: "\"" this is for parsing %q and %#v formating
const cidBreakSet = " \t\n\r\v\f;\""
//lint:ignore ST1008 using error as values
func parseIPLDErrNotFound(msg string) (error, bool) {
// The patern we search for is:
const ipldErrNotFoundKey = "ipld: could not find " /*CID*/
@ -159,7 +157,6 @@ func (e blockstoreNotFoundMatchingIPLDErrNotFound) Is(err error) bool {
return ok
}
//lint:ignore ST1008 using error as values
func parseBlockstoreNotFound(msg string) (error, bool) {
if !strings.Contains(msg, "blockstore: block not found") {
return nil, false