Skip to content

Commit

Permalink
fix: avoid uninitialized ivar warnings
Browse files Browse the repository at this point in the history
by rearranging the order of variable initialization
  • Loading branch information
flavorjones committed Sep 10, 2023
1 parent ee637e0 commit 2b25dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mini_portile2/mini_portile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ def initialize(name, version, **kwargs)
@logger = STDOUT
@source_directory = nil

@original_host = @host = detect_host

@gcc_command = kwargs[:gcc_command]
@make_command = kwargs[:make_command]
@open_timeout = kwargs[:open_timeout] || DEFAULT_TIMEOUT
@read_timeout = kwargs[:read_timeout] || DEFAULT_TIMEOUT

@original_host = @host = detect_host
end

def source_directory=(path)
Expand Down

0 comments on commit 2b25dc9

Please sign in to comment.