summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/invite_code.rake6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/tasks/invite_code.rake b/lib/tasks/invite_code.rake
index 53c39b9..d6e2b49 100644
--- a/lib/tasks/invite_code.rake
+++ b/lib/tasks/invite_code.rake
@@ -6,12 +6,8 @@ task :generate_invites, [:n, :u] => :environment do |task, args|
codes = args.n
codes = codes.to_i
- if args.u == nil
- max_uses = 1
-
- elsif
+ if args.u != nil
max_uses = args.u
- max_uses = max_uses.to_i
end
codes.times do |x|