Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Commit c4fc1a7

Browse files
committed
chore: remove unused linter directives
1 parent 3bc21fd commit c4fc1a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

errors.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
5352
func 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
7372
const cidBreakSet = " \t\n\r\v\f;\""
7473

75-
//lint:ignore ST1008 using error as values
7674
func 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
163160
func parseBlockstoreNotFound(msg string) (error, bool) {
164161
if !strings.Contains(msg, "blockstore: block not found") {
165162
return nil, false

0 commit comments

Comments
 (0)