diff options
Diffstat (limited to 'lib/chef_zero/data_store/memory_store_v2.rb')
-rw-r--r-- | lib/chef_zero/data_store/memory_store_v2.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef_zero/data_store/memory_store_v2.rb b/lib/chef_zero/data_store/memory_store_v2.rb index b35d490..85f8b3d 100644 --- a/lib/chef_zero/data_store/memory_store_v2.rb +++ b/lib/chef_zero/data_store/memory_store_v2.rb @@ -115,9 +115,9 @@ module ChefZero if value.is_a?(Hash) && !options[:allow_dirs] raise "exists? does not work with directories (#{path} = #{value.class})" end - return true + true rescue DataNotFoundError - return false + false end def exists_dir?(path) @@ -125,9 +125,9 @@ module ChefZero if !dir.is_a? Hash raise "exists_dir? only works with directories (#{path} = #{dir.class})" end - return true + true rescue DataNotFoundError - return false + false end private |