mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
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:
committed by
GitHub
parent
a2acf477f7
commit
fb41b182aa
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user