lib/match/git_helper.rb in match-0.1.0 vs lib/match/git_helper.rb in match-0.1.1
- old
+ new
@@ -50,10 +50,12 @@
end
@dir = nil
end
def self.clear_changes
- FileUtils.rm_rf(@dir) if @dir # @dir might be nil in tests
+ return unless @dir
+
+ FileUtils.rm_rf(@dir)
UI.success "🔒 Successfully encrypted certificates repo" # so the user is happy
@dir = nil
end
# Copies the README.md into the git repo