summaryrefslogtreecommitdiff
path: root/lib/pry/pry_class.rb
diff options
context:
space:
mode:
authorArlandis Word <arlandislawrence@gmail.com>2018-10-14 09:44:58 -0400
committerArlandis Word <arlandislawrence@gmail.com>2018-10-14 09:44:58 -0400
commit59e7afd40b924b65ecdaf350f379569838dc0931 (patch)
tree19bf1a7c8d739696924fe099a6332a87a95194d9 /lib/pry/pry_class.rb
parent13e9c39562e564e3873e7d6ccaa129ecb15edbc7 (diff)
downloadpry-59e7afd40b924b65ecdaf350f379569838dc0931.tar.gz
Fix rubocop empty line after guard clause style violations
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r--lib/pry/pry_class.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index d122c125..eb19af8b 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -142,6 +142,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
# requires, and history.
def self.initial_session_setup
return unless initial_session?
+
@initial_session = false
# note these have to be loaded here rather than in pry_instance as
@@ -151,6 +152,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
def self.final_session_setup
return if @session_finalized
+
@session_finalized = true
load_plugins if Pry.config.should_load_plugins
load_requires if Pry.config.should_load_requires
@@ -171,6 +173,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
if ENV['FAIL_PRY']
raise 'You have FAIL_PRY set to true, which results in Pry calls failing'
end
+
options = options.to_hash
if in_critical_section?
@@ -294,6 +297,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
def self.default_editor_for_platform
return ENV['VISUAL'] if ENV['VISUAL'] and not ENV['VISUAL'].empty?
return ENV['EDITOR'] if ENV['EDITOR'] and not ENV['EDITOR'].empty?
+
if Helpers::BaseHelpers.windows?
'notepad'
else