mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix Lint/EndAlignment.
This commit is contained in:
parent
3540c94df6
commit
42efb44e7d
@ -6,16 +6,6 @@
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
# versions of RuboCop, may require this file to be generated again.
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
||||
# SupportedStyles: keyword, variable, start_of_line
|
||||
Lint/EndAlignment:
|
||||
Exclude:
|
||||
- 'Homebrew/download_strategy.rb'
|
||||
- 'Homebrew/keg.rb'
|
||||
- 'Homebrew/os/mac/cctools_mach.rb'
|
||||
|
||||
# Offense count: 18
|
||||
Lint/HandleExceptions:
|
||||
Exclude:
|
||||
|
@ -696,7 +696,8 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
||||
args << "--depth" << "1" if shallow_clone?
|
||||
|
||||
case @ref_type
|
||||
when :branch, :tag then args << "--branch" << @ref
|
||||
when :branch, :tag
|
||||
args << "--branch" << @ref
|
||||
end
|
||||
|
||||
args << @url << cached_location
|
||||
@ -741,8 +742,10 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
||||
|
||||
def reset_args
|
||||
ref = case @ref_type
|
||||
when :branch then "origin/#{@ref}"
|
||||
when :revision, :tag then @ref
|
||||
when :branch
|
||||
"origin/#{@ref}"
|
||||
when :revision, :tag
|
||||
@ref
|
||||
end
|
||||
|
||||
%W[reset --hard #{ref}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user