bin/mayaml-mutt-creds in mayaml-mutt-3.0.0 vs bin/mayaml-mutt-creds in mayaml-mutt-4.0.0

- old
+ new

@@ -1,8 +1,9 @@ #!/usr/bin/env ruby +# frozen_string_literal: true -# Copyright (C) 2016 Szymon Kopciewski +# Copyright (C) 2016, 2017 Szymon Kopciewski # # This file is part of MayamlMutt. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -51,13 +52,12 @@ def check_yaml_path(yaml_path) if yaml_path.nil? puts_ussage_message exit 1 end - unless File.exist? yaml_path - puts "Could not find file: #{yaml_path}" - exit 1 - end + return if File.exist? yaml_path + puts "Could not find file: #{yaml_path}" + exit 1 end def main(args) yaml_path = args.shift destination_dir = args.shift