Skip to content
Snippets Groups Projects
Unverified Commit 4f119ad8 authored by Maxim Belkin's avatar Maxim Belkin Committed by GitHub
Browse files

linkage_checker.rb: Use ||= instead of "return ... if ... "

parent 2918f92b
No related branches found
No related tags found
No related merge requests found
......@@ -95,9 +95,7 @@ class LinkageChecker
end
def unexpected_present_dylibs
return @unexpected_present_dylibs if @unexpected_present_dylibs
@unexpected_present_dylibs = @formula.class.allowed_missing_libraries.reject do |allowed_missing_lib|
@unexpected_present_dylibs ||= @formula.class.allowed_missing_libraries.reject do |allowed_missing_lib|
@broken_dylibs.any? do |broken_lib|
case allowed_missing_lib
when Regexp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment