From 5957a3e476f578eaca7e1e62fb912f76bcd887b9 Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Tue, 22 Dec 2020 10:39:55 -0600 Subject: [PATCH] remove impossible case https://github.com/guard/listen/pull/526#issuecomment-749376277 --- lib/listen/record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/listen/record.rb b/lib/listen/record.rb index 85572cd4..4f8fedf0 100644 --- a/lib/listen/record.rb +++ b/lib/listen/record.rb @@ -45,7 +45,7 @@ def file_data(rel_path) end def dir_entries(rel_path) - subtree = if [nil, '', '.'].include? rel_path.to_s + subtree = if ['', '.'].include? rel_path.to_s @tree else @tree[rel_path.to_s] ||= _auto_hash