summaryrefslogtreecommitdiff
path: root/lib/pry.rb
diff options
context:
space:
mode:
authorrobert <robert@jazzonmymind.xyz>2018-11-20 10:46:08 +0100
committerrobert <robert@jazzonmymind.xyz>2018-11-20 10:48:22 +0100
commit4b8e9c82789258a2cf36cd6c5de722cabbdc93cb (patch)
treeab3772ffab5dc8c599a1286d89b000874579ff07 /lib/pry.rb
parent802e9fd3fe9894f745160d4dc64737aebf101018 (diff)
downloadpry-4b8e9c82789258a2cf36cd6c5de722cabbdc93cb.tar.gz
update from_hash calls to not pass an explicit 'nil' as a second argument.
The default for the optional second argument is already 'nil', so we don't have to explicitly pass nil as a second argument.
Diffstat (limited to 'lib/pry.rb')
-rw-r--r--lib/pry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry.rb b/lib/pry.rb
index 2809d188..f4276f88 100644
--- a/lib/pry.rb
+++ b/lib/pry.rb
@@ -68,7 +68,7 @@ class Pry
else
# Otherwise, saves current binding stack as old stack and pops last
# binding out of binding stack (the old stack still has that binding).
- _pry_.command_state["cd"] ||= Pry::Config.from_hash({}) # FIXME
+ _pry_.command_state["cd"] ||= Pry::Config.from_hash({})
_pry_.command_state['cd'].old_stack = _pry_.binding_stack.dup
_pry_.binding_stack.pop
end