Skip to content

Commit

Permalink
(vanagon-238) Fixed rubocop offences and fix workflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkarsale committed Jan 22, 2024
1 parent ca35011 commit 6d72dd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
ruby-version: '2.7'
- name: Build and test with Rake
run: |
gem install bundler
gem install bundler -v 2.4.22
bundle install --jobs 4 --retry 3
bundle exec rake
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Lint/SuppressedException:
Enabled: true

Lint/SymbolConversion:
Enabled: true
Enabled: false

Lint/ToEnumArguments:
Enabled: true
Expand Down
4 changes: 2 additions & 2 deletions lib/vanagon/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def is_windows?
#
# @return [true, false] true if it is a linux variety, false otherwise
def is_linux?
return (!is_windows? && !is_unix?)
!is_windows? && !is_unix?
end

# Utility matcher to determine if the platform is a cross-compiled variety
Expand All @@ -490,7 +490,7 @@ def is_cross_compiled?
#
# @return [true, false] true if it is a cross-compiled Linux variety, false otherwise
def is_cross_compiled_linux?
return (is_cross_compiled? && is_linux?)
is_cross_compiled? && is_linux?
end

# Pass in a packaging override. This needs to be implemented for each
Expand Down

0 comments on commit 6d72dd8

Please sign in to comment.