Skip to content

Commit

Permalink
Merge pull request #42 from ilmanzo/linter_fix
Browse files Browse the repository at this point in the history
fulfill linter suggestion
  • Loading branch information
nakabonne authored Oct 4, 2020
2 parents 43f82ae + bf8c321 commit 9ad170f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ func (c *cli) makeOptions() (*attacker.Options, error) {

body := []byte(c.body)
if c.bodyFile != "" {
if b, err := ioutil.ReadFile(c.bodyFile); err != nil {
b, err := ioutil.ReadFile(c.bodyFile)
if err != nil {
return nil, fmt.Errorf("unable to open %q: %w", c.bodyFile, err)
} else {
body = b
}
body = b
}

return &attacker.Options{
Expand Down

0 comments on commit 9ad170f

Please sign in to comment.