Skip to content

Commit 11183c0

Browse files
committed
Code style for v8
1 parent 522d4b3 commit 11183c0

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

app/controllers/api/v8/core/submissions/feedback_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FeedbackController < Api::V8::BaseController
3030
key :type, :integer
3131
end
3232
end
33-
end
33+
end
3434
end
3535
end
3636
response 403, '$ref': '#/responses/error'

app/controllers/api/v8/organizations_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class OrganizationsController < Api::V8::BaseController
4747

4848
def index
4949
orgs = Organization
50-
.visible_organizations
51-
.select { |org| org.visibility_allowed?(request, current_user) }
52-
.map { |o| { name: o.name, information: o.information, slug: o.slug, logo_path: o.logo.url, pinned: o.pinned } }
50+
.visible_organizations
51+
.select { |org| org.visibility_allowed?(request, current_user) }
52+
.map { |o| { name: o.name, information: o.information, slug: o.slug, logo_path: o.logo.url, pinned: o.pinned } }
5353
authorize! :read, orgs
5454
present(orgs)
5555
end

app/controllers/api/v8/users/password_reset_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def create
3030
success: true
3131
}
3232
end
33-
3433
end
3534
end
3635
end

app/controllers/api/v8/users_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ def update
131131
set_extra_data(true)
132132
update_email
133133
maybe_update_password
134-
if !@user.errors.empty? || !@user.save
135-
raise ActiveRecord::Rollback
136-
end
134+
raise ActiveRecord::Rollback if !@user.errors.empty? || !@user.save
137135
RecentlyChangedUserDetail.email_changed.create!(old_value: @email_before, new_value: @user.email) unless @email_before.casecmp(@user.email).zero?
138136
return render json: {
139137
message: 'User details updated.'

0 commit comments

Comments
 (0)