Skip to content

Commit

Permalink
Remove useless loc
Browse files Browse the repository at this point in the history
  • Loading branch information
bew committed Sep 1, 2017
1 parent 6a9267c commit 2f3f856
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions spec/compiler/crystal/tools/init_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ private def stderr_of(command)
stderr
end

# TODO: need better name for this helper
private def ensure_remove(directory : String)
yield directory
ensure
FileUtils.rm_rf(directory) # risk?
FileUtils.rm_rf(directory) # risky?
end

module Crystal
Expand Down
1 change: 0 additions & 1 deletion src/compiler/crystal/tools/init.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require "option_parser"
module Crystal
module Init
WHICH_GIT_COMMAND = "which git >/dev/null"
ALLOWED_DIRECTORY_FILES = {".", "..", ".git"}

def self.run(args)
config = Config.new
Expand Down

0 comments on commit 2f3f856

Please sign in to comment.