diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-13 08:07:08 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-13 08:07:08 -0800 |
commit | 8e1e75da57b3c5d56abc180238440cf4e411d3ae (patch) | |
tree | e62802d28c41124f9db3be507ff37e5df8d95996 /lib/chef/win32 | |
parent | 5e5cbe6df61ae69b9a5942ce51a7ad1f8bb6ea3a (diff) | |
download | chef-8e1e75da57b3c5d56abc180238440cf4e411d3ae.tar.gz |
yet more lint copslcg/lint-cops-again
fixes:
Lint/AmbiguousOperator
Lint/DuplicateMethods
Diffstat (limited to 'lib/chef/win32')
-rw-r--r-- | lib/chef/win32/registry.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/chef/win32/registry.rb b/lib/chef/win32/registry.rb index 12ad08a965..3c1f62d9b8 100644 --- a/lib/chef/win32/registry.rb +++ b/lib/chef/win32/registry.rb @@ -256,19 +256,6 @@ class Chef end end - def get_type_from_name(val_type) - value = { - :binary => ::Win32::Registry::REG_BINARY, - :string => ::Win32::Registry::REG_SZ, - :multi_string => ::Win32::Registry::REG_MULTI_SZ, - :expand_string => ::Win32::Registry::REG_EXPAND_SZ, - :dword => ::Win32::Registry::REG_DWORD, - :dword_big_endian => ::Win32::Registry::REG_DWORD_BIG_ENDIAN, - :qword => ::Win32::Registry::REG_QWORD - }[val_type] - return value - end - def keys_missing?(key_path) missing_key_arr = key_path.split("\\") missing_key_arr.pop |