branch: master
commit a16b225e15f3b875b5ed35f9e92b590924dfe03a
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    One fewer version check
    
    Closes #54
---
 diff-hl-flydiff.el |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el
index 17ab769..0c421ce 100644
--- a/diff-hl-flydiff.el
+++ b/diff-hl-flydiff.el
@@ -27,9 +27,8 @@
 
 (require 'diff-hl)
 (require 'diff)
-(if (version< emacs-version "24.4")
-    (error "`diff-hl-flydiff-mode' requires Emacs 24.4 or newer")
-  (require 'nadvice))
+(unless (require 'nadvice nil t)
+  (error "`diff-hl-flydiff-mode' requires Emacs 24.4 or newer"))
 
 (defvar diff-hl-flydiff-modified-tick 0)
 (defvar diff-hl-flydiff-timer)

Reply via email to