Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
000b7238
Commit
000b7238
authored
Feb 23, 2016
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use single assignment for the conditional
parent
bfa0dbf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
lint.rb
lib/cocoapods/command/repo/lint.rb
+9
-9
No files found.
lib/cocoapods/command/repo/lint.rb
View file @
000b7238
...
...
@@ -34,15 +34,15 @@ module Pod
# @todo add UI.print and enable print statements again.
#
def
run
if
@name
if
File
.
exist?
(
@name
)
sources
=
[
Pathname
.
new
(
@name
)]
else
sources
=
SourcesManager
.
sources
([
@name
]).
map
(
&
:repo
)
end
else
sources
=
SourcesManager
.
aggregate
.
sources
.
map
(
&
:repo
)
end
sources
=
if
@name
if
File
.
exist?
(
@name
)
[
Pathname
.
new
(
@name
)]
else
SourcesManager
.
sources
([
@name
]).
map
(
&
:repo
)
end
else
SourcesManager
.
aggregate
.
sources
.
map
(
&
:repo
)
end
sources
.
each
do
|
source
|
SourcesManager
.
check_version_information
(
source
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment