Skip to content

Commit

Permalink
Merge pull request #1326 from pocke/Fix_a_type_error_in_FileFinder
Browse files Browse the repository at this point in the history
Fix a type error in FileFinder
  • Loading branch information
pocke authored May 13, 2023
2 parents 6627d33 + 5bee54a commit 97187e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rbs/file_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module FileFinder
module_function

def self.each_file(path, immediate:, skip_hidden:, &block)
return enum_for(__method__, path, immediate: immediate, skip_hidden: skip_hidden) unless block
return enum_for((__method__ or raise), path, immediate: immediate, skip_hidden: skip_hidden) unless block

case
when path.file?
Expand Down

0 comments on commit 97187e9

Please sign in to comment.