branch: master
commit f4a6f3086a3ceec5cf5b03fb6edd46025799066d
Author: rocky <[email protected]>
Commit: rocky <[email protected]>

    Remove more lint messages
---
 realgud/common/lochist.el    | 3 +--
 realgud/common/track-mode.el | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/realgud/common/lochist.el b/realgud/common/lochist.el
index 35253c8..088589f 100644
--- a/realgud/common/lochist.el
+++ b/realgud/common/lochist.el
@@ -63,8 +63,7 @@
   "Get the current item stored at POSITION of the ring
 component in LOC-HIST"
   (lexical-let ((ring (realgud-loc-hist-ring loc-hist)))
-    (if (ring-empty-p ring)
-       nil
+    (unless (ring-empty-p ring)
       (ring-ref ring position))))
 
 (defun realgud-loc-hist-item(loc-hist)
diff --git a/realgud/common/track-mode.el b/realgud/common/track-mode.el
index 4f58428..b996e91 100644
--- a/realgud/common/track-mode.el
+++ b/realgud/common/track-mode.el
@@ -1,4 +1,4 @@
-;; Copyright (C) 2015-2016 Free Software Foundation, Inc
+;; Copyright (C) 2015-2017 Free Software Foundation, Inc
 
 ;; Author: Rocky Bernstein <[email protected]>
 
@@ -38,6 +38,7 @@
                  'realgud-buffer-command)
 (declare-function realgud:canonic-major-mode
                  'realgud-utils)
+(declare-function shell-mode 'shell)
 
 (defvar realgud-track-mode-map
   (let ((map  (copy-keymap shell-mode-map)))

Reply via email to