commit 07cacf3675db14981c1899ccc299d430c3b17db9
parent 2ebb2b98df64b5f98023921b112fa9780ccf4512
Author: Frederic Cambus <fred@statdns.com>
Date: Sat, 28 Apr 2018 22:59:16 +0200
Linting
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/motyl b/bin/motyl
@@ -51,7 +51,8 @@ Mustache.template_path = theme + 'templates/'
def render(directory, templates, data)
Dir.foreach(directory) do |file|
- next if file == '.' || file == '..'
+ next if ['.', '..'].include?(file)
+
extension = File.extname(file)
if extension == '.md'