Skip to content

Commit 0ef1bb1

Browse files
authored
Update main.rb
1 parent dca4d9b commit 0ef1bb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_tokens_from_file(file, key)
5252
email, pass = line.split(":")
5353
token = get_token(email, pass, key)
5454
if token.nil?
55-
puts "\e[31m" + line + "\e[0m"
55+
File.write(file, File.readlines(file).reject { |l| l.include?(line) }.join)
5656
else
5757
plan = get_plan(token)
5858
puts "\e[32m" + line + "\e[0m" + " - " + plan

0 commit comments

Comments
 (0)