Преглед на файлове

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"})
 							}
 						}
 					}()