summaryrefslogtreecommitdiffstats
path: root/model/audits.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-01-30 17:23:00 -0600
committerCorey Hulen <corey@hulen.com>2018-01-30 15:23:00 -0800
commit0c8968fb8df4ce302c928118cd81e75f5bef2861 (patch)
treeb17a2ae5afc98f7ce3daaea10a165d9d647c47c5 /model/audits.go
parentac2e42a480c5bba2e5128017218b0fa1bed8e836 (diff)
downloadchat-0c8968fb8df4ce302c928118cd81e75f5bef2861.tar.gz
chat-0c8968fb8df4ce302c928118cd81e75f5bef2861.tar.bz2
chat-0c8968fb8df4ce302c928118cd81e75f5bef2861.zip
unnamed return (#8170)
Diffstat (limited to 'model/audits.go')
-rw-r--r--model/audits.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/model/audits.go b/model/audits.go
index e57e2a3ac..3673eb618 100644
--- a/model/audits.go
+++ b/model/audits.go
@@ -28,12 +28,7 @@ func (o Audits) ToJson() string {
}
func AuditsFromJson(data io.Reader) Audits {
- decoder := json.NewDecoder(data)
var o Audits
- err := decoder.Decode(&o)
- if err == nil {
- return o
- } else {
- return nil
- }
+ json.NewDecoder(data).Decode(&o)
+ return o
}