From 56aac31bbad945a3f2237cca02e7de407d73f6db Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 24 Jul 2021 01:13:54 +0200 Subject: Reuse date --- sunday.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunday.rb b/sunday.rb index 8173da3..0621350 100755 --- a/sunday.rb +++ b/sunday.rb @@ -25,7 +25,7 @@ cgi = CGI.new today = Date::today thoughts_file = "#{THOUGHTS_DIR}/#{today}" -if Date::today.sunday? +if today.sunday? if File.exist? thoughts_file contents = File.read thoughts_file else -- cgit v1.2.3