lib/journal-cli/checkin.rb in journal-cli-1.0.25 vs lib/journal-cli/checkin.rb in journal-cli-1.0.26

- old
+ new

@@ -131,10 +131,10 @@ File.open(target, 'w') { |f| f.puts to_markdown(yaml: true, title: true) } puts "Saved new entry to #{target}" end def print_answer(prompt, type, key, data) - return if data.nil? || !data.key?(key) + return if data.nil? || !data.key?(key) || data[key].nil? case type when /^(weather|forecast)/ header prompt @output << case type