Skip to content

Commit 822a045

Browse files
committed
Fix Homebrew style: Use ENV.fetch instead of ENV[]
Changed ENV["PATH"] to ENV.fetch("PATH", nil) on line 77 to comply with Homebrew's RuboCop style requirements.
1 parent 487b88f commit 822a045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/homebrew/mfc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def install
7474
# Now build MFC with pre-configured venv
7575
# Set VIRTUAL_ENV so mfc.sh uses existing venv instead of creating new one
7676
ENV["VIRTUAL_ENV"] = venv
77-
ENV["PATH"] = "#{venv}/bin:#{ENV["PATH"]}"
77+
ENV["PATH"] = "#{venv}/bin:#{ENV.fetch("PATH", nil)}"
7878

7979
system "./mfc.sh", "build",
8080
"-t", "pre_process", "simulation", "post_process",

0 commit comments

Comments
 (0)