chore: remove unused linter directives
This commit was moved from ipfs/go-ipfs-http-client@c4fc1a7740bfaad2abcba2563d569422e525324c
galargh committed
Oct 1, 2022 at 17:37 UTC
1193b2978f7859ed8e1df4be50e980ff1bde7015
1 file changed
-3
client/httpapi/errors.go
-3
@@ -49,7 +49,6 @@ func parseErrNotFoundWithFallbackToError(msg error) error {
49
return msg
50
}
51
52
-//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
52
func parseErrNotFound(msg string) (error, bool) {
53
if msg == "" {
54
return nil, true // Fast path
@@ -72,7 +71,6 @@ func parseErrNotFound(msg string) (error, bool) {
71
// - Double Quotes: "\"" this is for parsing %q and %#v formating
72
const cidBreakSet = " \t\n\r\v\f;\""
73
75
-//lint:ignore ST1008 using error as values
74
func parseIPLDErrNotFound(msg string) (error, bool) {
75
// The patern we search for is:
76
const ipldErrNotFoundKey = "ipld: could not find " /*CID*/
@@ -159,7 +157,6 @@ func (e blockstoreNotFoundMatchingIPLDErrNotFound) Is(err error) bool {
157
return ok
158
}
159
162
-//lint:ignore ST1008 using error as values
160
func parseBlockstoreNotFound(msg string) (error, bool) {
161
if !strings.Contains(msg, "blockstore: block not found") {
162
return nil, false