mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 04:26:08 +10:00
Merge branch 'rubocop/enable-unneeded-capital-w-cop' into 'master'
Enable Style/UnneededCapitalW Rubocop cop ## What does this MR do? This MR enables Rubocop cop that checks if `%W[]`, which supports interpolation, is needed. ## What are the relevant issue numbers? #17478 See merge request !5010
This commit is contained in:
@@ -39,7 +39,7 @@ module Gitlab
|
||||
# OpenSSH 6.8 introduces a new default output format for fingerprints.
|
||||
# Check the version and decide which command to use.
|
||||
|
||||
version_output, version_status = popen(%W(ssh -V))
|
||||
version_output, version_status = popen(%w(ssh -V))
|
||||
return false unless version_status.zero?
|
||||
|
||||
version_matches = version_output.match(/OpenSSH_(?<major>\d+)\.(?<minor>\d+)/)
|
||||
|
||||
Reference in New Issue
Block a user