aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go2
-rw-r--r--lib/socket.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index bd9e935b..5a86d41e 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -575,7 +575,7 @@ func (store *MessageStore) updateVisual() {
}
missing := make([]uint32, 0)
for _, uid := range visUids {
- if msg, _ := store.Messages[uid]; msg == nil {
+ if msg := store.Messages[uid]; msg == nil {
missing = append(missing, uid)
}
}
diff --git a/lib/socket.go b/lib/socket.go
index 119ffdad..814dce12 100644
--- a/lib/socket.go
+++ b/lib/socket.go
@@ -83,7 +83,7 @@ func (as *AercServer) handleClient(conn net.Conn) {
if err != nil {
conn.Write([]byte(fmt.Sprintf("result: %v\n", err)))
} else {
- conn.Write([]byte(fmt.Sprint("result: success\n")))
+ conn.Write([]byte("result: success\n"))
}
}
}