summaryrefslogtreecommitdiffstats
path: root/utils/inbucket.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/inbucket.go')
-rw-r--r--utils/inbucket.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/inbucket.go b/utils/inbucket.go
index 3aef34d9f..46011989b 100644
--- a/utils/inbucket.go
+++ b/utils/inbucket.go
@@ -102,10 +102,8 @@ func GetMessageFromMailbox(email, id string) (results JSONMessageInbucket, err e
}
defer resp.Body.Close()
- if err := json.NewDecoder(resp.Body).Decode(&record); err != nil {
- return record, err
- }
- return record, nil
+ err = json.NewDecoder(resp.Body).Decode(&record)
+ return record, err
}
func DeleteMailBox(email string) (err error) {