File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package types
22
33import (
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
You can’t perform that action at this time.
0 commit comments