Skip to content

Commit

Permalink
Merge pull request tucnak#119 from irgendwr/patch-4
Browse files Browse the repository at this point in the history
simplified unnecessary if
  • Loading branch information
Ian Byrd authored Jan 17, 2018
2 parents fd49f3f + f2812ea commit 2025c10
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ func (b *Bot) sendFiles(
return err
}

if _, err = io.Copy(part, file); err != nil {
return err
}

return nil
_, err = io.Copy(part, file)
return err
} (); err != nil {
return nil, wrapSystem(err)
}
Expand Down

0 comments on commit 2025c10

Please sign in to comment.