diff options
Diffstat (limited to 'lib/ohai/common/dmi.rb')
-rw-r--r-- | lib/ohai/common/dmi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/common/dmi.rb b/lib/ohai/common/dmi.rb index 3bd4da39..e887eebe 100644 --- a/lib/ohai/common/dmi.rb +++ b/lib/ohai/common/dmi.rb @@ -115,7 +115,7 @@ module Ohai end end in_common.each do |field, value| - next if value == nil + next if value.nil? dmi[type][field] = value.strip end end |