mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
use %w for words array
This commit is contained in:
parent
e99b18519d
commit
6a6120ca14
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Config
|
|||
length: 16,
|
||||
}
|
||||
|
||||
['numeric', 'special', 'alpha', 'length'].each do |k|
|
||||
%w(numeric special alpha length).each do |k|
|
||||
if options.key?("pwd_#{k}".to_sym)
|
||||
password[k.to_sym] = options["pwd_#{k}".to_sym]
|
||||
elsif !@password.nil? && @password.key?(k.to_sym)
|
||||
|
|
Loading…
Add table
Reference in a new issue