1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-12 07:51:08 -04:00

go vet, go fmt

This commit is contained in:
2017-10-14 20:38:40 -04:00
parent f2ce7adb52
commit 85a58c3ff8
5 changed files with 4 additions and 9 deletions

View File

@ -321,11 +321,11 @@ func OFXFileImportHandler(tx *Tx, r *http.Request, user *User, accountid int64)
part, err := multipartReader.NextPart()
if err != nil {
if err == io.EOF {
return NewError(3 /*Invalid Request*/)
log.Print("Encountered unexpected EOF")
return NewError(3 /*Invalid Request*/)
} else {
return NewError(999 /*Internal Error*/)
log.Print(err)
return NewError(999 /*Internal Error*/)
}
}