mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
remove do in while line
This commit is contained in:
parent
18ba72e91b
commit
5db52db1a3
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class MPW
|
|||
chars = [*('A'..'Z'), *('a'..'z'), *('0'..'9')] if chars.empty?
|
||||
|
||||
result = ''
|
||||
while length > 62 do
|
||||
while length > 62
|
||||
result << chars.sample(62).join
|
||||
length -= 62
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue