Переглянути джерело

refactor(lint): inconsistent handling of return value

ayn2op 5 місяців тому
батько
коміт
662539b063
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      cmd/application.go
  2. 1 1
      internal/login/qr.go

+ 1 - 1
cmd/application.go

@@ -112,7 +112,7 @@ func (a *application) onPagesInputCapture(event *tcell.EventKey) *tcell.EventKey
 	switch event.Name() {
 	case a.cfg.Keys.FocusGuildsTree:
 		a.messageInput.removeMentionsList()
-		_ = a.focusGuildsTree()
+		a.focusGuildsTree()
 		return nil
 	case a.cfg.Keys.FocusMessagesList:
 		a.messageInput.removeMentionsList()

+ 1 - 1
internal/login/qr.go

@@ -244,7 +244,7 @@ func (q *qrLogin) run(ctx context.Context) {
 							case <-ctx.Done():
 								return
 							case <-heartbeatTicker.C:
-								_ = q.writeJSON(map[string]any{"op": "heartbeat"})
+								q.writeJSON(map[string]any{"op": "heartbeat"})
 							}
 						}
 					}()