Skip to content

Commit

Permalink
shush older ruby warnings about uninitialized ivar @detect_host
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 30, 2024
1 parent c451dde commit 274299a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mini_portile2/mini_portile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ def detect_host
output = `#{gcc_cmd} -v 2>&1`
if m = output.match(/^Target\: (.*)$/)
@detect_host = m[1]
else
@detect_host = nil
end

@detect_host
Expand Down

0 comments on commit 274299a

Please sign in to comment.