diff options
author | icebaker <icebaker@proton.me> | 2023-05-13 18:45:25 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-05-13 18:45:25 -0300 |
commit | 62939e4baafde86d0ef599f1c7dc07cce95b8a73 (patch) | |
tree | 316d67203d21a9ec9f3370e2e93f55422b4c3d0f /logic/helpers | |
parent | a1950c8eb3b55759b0cdcc7716c88b99d0173f2d (diff) |
adding support for adapters
Diffstat (limited to 'logic/helpers')
-rw-r--r-- | logic/helpers/hash.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/helpers/hash.rb b/logic/helpers/hash.rb index 52bd8d4..90432b5 100644 --- a/logic/helpers/hash.rb +++ b/logic/helpers/hash.rb @@ -23,6 +23,10 @@ module NanoBot return nil unless node path.each do |key| + unless node.is_a?(::Hash) + node = nil + break + end node = node[key] break if node.nil? end |