Commit 721580ed14ce4576e054d5e6df3f6db0a5d1663b
1 parent
4b08a41c
Exists in
master
obey rubocop
Showing
4 changed files
with
8 additions
and
8 deletions
Show diff stats
app/controllers/apps_controller.rb
| ... | ... | @@ -97,7 +97,7 @@ protected |
| 97 | 97 | # set the app's notification service |
| 98 | 98 | available_notification_classes = [NotificationService] + NotificationService.subclasses |
| 99 | 99 | notification_class = available_notification_classes.detect { |c| c.name == notification_type } |
| 100 | - if !notification_class.nil? | |
| 100 | + unless notification_class.nil? | |
| 101 | 101 | app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) |
| 102 | 102 | end |
| 103 | 103 | end | ... | ... |
app/models/problem.rb
config/puma.default.rb
lib/airbrake_api/v3/notice_parser.rb
| ... | ... | @@ -72,9 +72,9 @@ module AirbrakeApi |
| 72 | 72 | return context['user'] if context['user'] |
| 73 | 73 | |
| 74 | 74 | { |
| 75 | - 'id' => context['userId'], | |
| 76 | - 'name' => context['userName'], | |
| 77 | - 'email' => context['userEmail'], | |
| 75 | + 'id' => context['userId'], | |
| 76 | + 'name' => context['userName'], | |
| 77 | + 'email' => context['userEmail'], | |
| 78 | 78 | 'username' => context['userUsername'] |
| 79 | 79 | }.compact |
| 80 | 80 | end | ... | ... |