This repository was archived by the owner on Oct 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ func parseErrNotFoundWithFallbackToError(msg error) error {
49
49
return msg
50
50
}
51
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
53
52
func parseErrNotFound (msg string ) (error , bool ) {
54
53
if msg == "" {
55
54
return nil , true // Fast path
@@ -72,7 +71,6 @@ func parseErrNotFound(msg string) (error, bool) {
72
71
// - Double Quotes: "\"" this is for parsing %q and %#v formating
73
72
const cidBreakSet = " \t \n \r \v \f ;\" "
74
73
75
- //lint:ignore ST1008 using error as values
76
74
func parseIPLDErrNotFound (msg string ) (error , bool ) {
77
75
// The patern we search for is:
78
76
const ipldErrNotFoundKey = "ipld: could not find " /*CID*/
@@ -159,7 +157,6 @@ func (e blockstoreNotFoundMatchingIPLDErrNotFound) Is(err error) bool {
159
157
return ok
160
158
}
161
159
162
- //lint:ignore ST1008 using error as values
163
160
func parseBlockstoreNotFound (msg string ) (error , bool ) {
164
161
if ! strings .Contains (msg , "blockstore: block not found" ) {
165
162
return nil , false
You can’t perform that action at this time.
0 commit comments