aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-01 10:25:15 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-02 13:47:20 +0300
commit1e082f9715a2061a7c6aec1efb93e2abc25fc591 (patch)
tree012b92e91517a4a59541b607cf39f43c20ffe43f
parentdd89fa621d6824edf96c61e47099f1c6ad0bfd09 (diff)
Ignore errors in NewGomuks()
-rw-r--r--gomuks.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gomuks.go b/gomuks.go
index f252fc4..60a4d2b 100644
--- a/gomuks.go
+++ b/gomuks.go
@@ -62,10 +62,10 @@ func NewGomuks(enableDebug, forceExternalDebug bool) *Gomuks {
gmx.config.Load()
if len(gmx.config.UserID) > 0 {
- gmx.config.LoadSession(gmx.config.UserID)
+ _ = gmx.config.LoadSession(gmx.config.UserID)
}
- gmx.matrix.InitClient()
+ _ = gmx.matrix.InitClient()
main := gmx.ui.InitViews()
if enableDebug {
@@ -86,7 +86,7 @@ func NewGomuks(enableDebug, forceExternalDebug bool) *Gomuks {
func (gmx *Gomuks) Save() {
if gmx.config.Session != nil {
gmx.debug.Print("Saving session...")
- gmx.config.Session.Save()
+ _ = gmx.config.Session.Save()
}
gmx.debug.Print("Saving history...")
gmx.ui.MainView().SaveAllHistory()