Skip to content

Commit 2184f79

Browse files
committed
Removed regex, for code climate
1 parent 5543b05 commit 2184f79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/controllers/volunteers_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def create
3131
@volunteer = current_organization.volunteers.new(create_volunteer_params)
3232
authorize @volunteer
3333

34-
if @volunteer.save && @volunteer.email.match?(URI::MailTo::EMAIL_REGEXP)
35-
34+
if @volunteer.save
3635
# invitation error handling
3736
begin
3837
@volunteer.invite!(current_user)

0 commit comments

Comments
 (0)