Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Sep 25, 2024
1 parent 878f96f commit d9a20c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Library/Homebrew/software_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,16 @@ def tab_attributes

sig { returns(T.nilable(Integer)) }
def bottle_size
return unless (resource = github_packages_manifest_resource)&.downloaded?
resource = github_packages_manifest_resource
return unless resource&.downloaded?

resource.bottle_size
end

sig { returns(T.nilable(Integer)) }
def installed_size
return unless (resource = github_packages_manifest_resource)&.downloaded?
resource = github_packages_manifest_resource
return unless resource&.downloaded?

resource.installed_size
end
Expand Down

0 comments on commit d9a20c2

Please sign in to comment.