Skip to content

Commit a49f879

Browse files
committed
fix linting again
1 parent eccc62f commit a49f879

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compilation/types/slither.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package types
22

33
import (
44
"encoding/json"
5-
"fmt"
5+
"errors"
66
"github.com/crytic/medusa/logging"
77
"os"
88
"os/exec"
@@ -95,7 +95,7 @@ func (s *SlitherConfig) RunSlither(target string) (*SlitherResults, error) {
9595
// Cache the results if we have not cached before. We have also already checked that the output is well-formed
9696
// (through unmarshal) so we should be safe.
9797
if !haveCachedResults && s.CachePath != "" {
98-
// TODO: Should we indent?
98+
// TODO: Should we indent the output?
9999
err = os.WriteFile(s.CachePath, out, 0644)
100100
if err != nil {
101101
// If we are unable to write to the cache, we should log the error but continue
@@ -134,9 +134,9 @@ func (s *SlitherResults) UnmarshalJSON(d []byte) error {
134134
// If success is not true or there is a non-empty error string, return early
135135
if !success || slitherError != "" {
136136
if slitherError != "" {
137-
return fmt.Errorf(slitherError)
137+
return errors.New(slitherError)
138138
}
139-
return fmt.Errorf("slither returned a failure during parsing")
139+
return errors.New("slither returned a failure during parsing")
140140
}
141141

142142
// Now we will extract the constants

0 commit comments

Comments
 (0)