lib/keystorage/manager.rb in keystorage-0.4.3 vs lib/keystorage/manager.rb in keystorage-0.4.5
- old
+ new
@@ -32,10 +32,10 @@
data = Hash.new
if File::exist?(@file)
File.open(@file,'r') do |f|
data = YAML.load(f)
return data.keys unless group
- return data[group].keys
+ return data[group].keys if data[group]
end
end
Hash.new
end