Skip to content

Commit

Permalink
CoreSim: prefer begin/end vs. lambda/call()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Dec 31, 2016
1 parent 4a813fb commit 9be9b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/run_loop/core_simulator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,13 @@ def self.term_or_kill(process_name, send_term_first)
# @return [String] A String suitable for searching for a pid, quitting, or
# launching the current simulator.
def sim_name
@sim_name ||= lambda {
@sim_name ||= begin
if xcode.version_gte_7?
"Simulator"
else
"iOS Simulator"
end
}.call
end
end

# @!visibility private
Expand Down

0 comments on commit 9be9b17

Please sign in to comment.