lib/standup_md/cli.rb in standup_md-0.3.8 vs lib/standup_md/cli.rb in standup_md-0.3.9

- old
+ new

@@ -26,16 +26,16 @@ end ## # Creates an instance of +StandupMD+ and runs what the user requested. def self.execute(options = []) - exe = new(options) - - exe.write_file if config.write - if config.print - exe.print(exe.entry) - elsif config.edit - exe.edit + new(options).tap do |exe| + exe.write_file if config.write + if config.print + exe.print(exe.entry) + elsif config.edit + exe.edit + end end end ## # The entry searched for, usually today.