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 {
4949 return msg
5050}
5151
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
5352func parseErrNotFound (msg string ) (error , bool ) {
5453 if msg == "" {
5554 return nil , true // Fast path
@@ -72,7 +71,6 @@ func parseErrNotFound(msg string) (error, bool) {
7271// - Double Quotes: "\"" this is for parsing %q and %#v formating
7372const cidBreakSet = " \t \n \r \v \f ;\" "
7473
75- //lint:ignore ST1008 using error as values
7674func parseIPLDErrNotFound (msg string ) (error , bool ) {
7775 // The patern we search for is:
7876 const ipldErrNotFoundKey = "ipld: could not find " /*CID*/
@@ -159,7 +157,6 @@ func (e blockstoreNotFoundMatchingIPLDErrNotFound) Is(err error) bool {
159157 return ok
160158}
161159
162- //lint:ignore ST1008 using error as values
163160func parseBlockstoreNotFound (msg string ) (error , bool ) {
164161 if ! strings .Contains (msg , "blockstore: block not found" ) {
165162 return nil , false
You can’t perform that action at this time.
0 commit comments