1
0
Fork 0
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:
Adrien Waksberg 2017-03-29 22:38:16 +02:00 committed by Adrien Waksberg
parent 18ba72e91b
commit 5db52db1a3

View file

@ -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