Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting errors #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions lib/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,12 @@
else
raise "Unsupported architecture: #{Hardware::CPU.arch}"
end
elsif Hardware::CPU.intel?
"x86_64.so"
elsif Hardware::CPU.arm?
"aarch64.so"
else
if Hardware::CPU.intel?
"x86_64.so"
elsif Hardware::CPU.arm?
"aarch64.so"
else
raise "Unsupported architecture: #{Hardware::CPU.arch}"
end
raise "Unsupported architecture: #{Hardware::CPU.arch}"
end
else
raise "Unsupported OS: #{OS::NAME}"
Expand All @@ -125,7 +123,7 @@
end

def alpine_linux?
File.exist?('/etc/alpine-release')

Check failure on line 126 in lib/base.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Check failure on line 126 in lib/base.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
end

test do
Expand Down
Loading