summaryrefslogtreecommitdiffstats
path: root/model/preferences.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/preferences.go')
-rw-r--r--model/preferences.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/model/preferences.go b/model/preferences.go
index b982e309d..172e1aa83 100644
--- a/model/preferences.go
+++ b/model/preferences.go
@@ -11,12 +11,8 @@ import (
type Preferences []Preference
func (o *Preferences) ToJson() string {
- b, err := json.Marshal(o)
- if err != nil {
- return ""
- } else {
- return string(b)
- }
+ b, _ := json.Marshal(o)
+ return string(b)
}
func PreferencesFromJson(data io.Reader) (Preferences, error) {