Fix rubocop safe navigation complaint. (#10611)

* Fix rubocop safe navigation complaint.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* bump version

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-10-15 13:34:13 -04:00
committed by GitHub
parent a2acf477f7
commit fb41b182aa
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
require 'etc'
OLD_CREW_VERSION ||= defined?(CREW_VERSION) ? CREW_VERSION : '1.0'
CREW_VERSION ||= '1.54.7' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
CREW_VERSION ||= '1.54.8' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
# Kernel architecture.
KERN_ARCH ||= Etc.uname[:machine]

View File

@@ -341,7 +341,7 @@ class Package
@dependencies.store(dep_name, [dep_tags, ver_check])
end
def self.binary?(architecture) = !@build_from_source && @binary_sha256 && @binary_sha256.key?(architecture)
def self.binary?(architecture) = !@build_from_source && @binary_sha256&.key?(architecture)
def self.source?(architecture) = missing_binaries ? true : !(binary?(architecture) || is_fake?)
def self.system(*args, **opt_args)