Skip to content

Commit

Permalink
Remove unnecessary file check for CLI arguments (crystal-lang#13853)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Oct 16, 2023
1 parent 8ceea56 commit 51fb08f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/compiler/crystal/command.cr
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,6 @@ class Crystal::Command

private def gather_sources(filenames)
filenames.map do |filename|
unless File.file?(filename)
error "file '#{filename}' does not exist"
end
filename = File.expand_path(filename)
Compiler::Source.new(filename, File.read(filename))
end
Expand Down

0 comments on commit 51fb08f

Please sign in to comment.