Skip to content

Commit

Permalink
Fix "no implicit conversion of Array into String" errors (danini-the-…
Browse files Browse the repository at this point in the history
…panini#117)

fix "no implicit conversion of Array into String" errors with regex matches being used as file system path strings

Co-authored-by: Dani Smith <danini@hey.com>
  • Loading branch information
PierceLBrooks and danini-the-panini authored Mar 8, 2024
1 parent 02f84c9 commit c59c4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mittsu/renderers/glfw_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class MacOS < GenericLib::Base
'/opt/homebrew/**']

def path
File.dirname(match)
File.dirname(match.to_s)
end

def file
File.basename(match)
File.basename(match.to_s)
end

private
Expand Down

0 comments on commit c59c4f3

Please sign in to comment.