From 973264d33e0d1747f62b63f2c38fdd58fcdd5dc1 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 2 Jun 2021 09:20:01 -0700 Subject: [PATCH] fix staticcheck This commit was moved from ipfs/go-ipfs-util@508ba17d06c4133acccb88c2aeab4c50aed04b8c --- util/util.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/util.go b/util/util.go index 8ebe3c706..ffcab2f33 100644 --- a/util/util.go +++ b/util/util.go @@ -23,14 +23,14 @@ const DefaultIpfsHash = mh.SHA2_256 var Debug bool // ErrNotImplemented signifies a function has not been implemented yet. -var ErrNotImplemented = errors.New("Error: not implemented yet.") +var ErrNotImplemented = errors.New("error: not implemented yet") // ErrTimeout implies that a timeout has been triggered -var ErrTimeout = errors.New("Error: Call timed out.") +var ErrTimeout = errors.New("error: call timed out") -// ErrSearchIncomplete implies that a search type operation didnt +// ErrSearchIncomplete implies that a search type operation didn't // find the expected node, but did find 'a' node. -var ErrSearchIncomplete = errors.New("Error: Search Incomplete.") +var ErrSearchIncomplete = errors.New("error: search incomplete") // ErrCast is returned when a cast fails AND the program should not panic. func ErrCast() error {