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
fd07ff80
Commit
fd07ff80
authored
May 01, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Executable] Get rid of redundant run calls
parent
ecd17b35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
executable.rb
lib/cocoapods/executable.rb
+1
-10
No files found.
lib/cocoapods/executable.rb
View file @
fd07ff80
...
...
@@ -82,17 +82,8 @@ module Pod
Open3
.
popen3
(
bin
,
*
command
)
do
|
i
,
o
,
e
,
t
|
out_reader
=
Thread
.
new
{
while
s
=
o
.
gets
;
stdout
<<
s
;
end
}
err_reader
=
Thread
.
new
{
while
s
=
e
.
gets
;
stderr
<<
s
;
end
}
i
.
close
run_readers
=
lambda
do
[
out_reader
,
err_reader
].
each
do
|
reader
|
reader
.
run
if
reader
.
alive?
end
end
run_readers
.
call
t
.
value
.
tap
{
run_readers
.
call
}
t
.
value
end
end
...
...
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