Skip to content

Commit

Permalink
Merge pull request #147 from surajnarwade/small_fix
Browse files Browse the repository at this point in the history
Modified if statement
  • Loading branch information
Matt Bernier committed Oct 11, 2017
2 parents 57d3e15 + 5379564 commit 3175d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/inbound/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func inboundHandler(response http.ResponseWriter, request *http.Request) {
log.Fatal(err)
}
header := p.Header.Get("Content-Disposition")
if strings.Contains(header, "filename") != true {
if !strings.Contains(header, "filename") {
header = header[17 : len(header)-1]
parsedEmail[header] = string(value)
} else {
Expand Down

0 comments on commit 3175d1f

Please sign in to comment.