Skip to content

Commit b2b9064

Browse files
MrSerthdependabot[bot]
authored andcommitted
Fix Rubocop offenses
1 parent 7679cba commit b2b9064

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def name
9595
"#{first_name} #{last_name}"
9696
end
9797

98-
def handle_destroy
98+
def handle_destroy # rubocop:disable Naming/PredicateMethod
9999
handle_group_memberships
100100
handle_collection_membership
101101
handle_messages

app/policies/application_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def everyone
4646
@user.present?
4747
end
4848

49-
def no_one
49+
def no_one # rubocop:disable Naming/PredicateMethod
5050
false
5151
end
5252

app/views/groups/show.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@
8585
i.fa-solid.fa-trash-can.text-danger
8686
=< t('.button.delete_group')
8787
- if policy(@group).leave?
88-
= link_to t('.button.leave'), leave_group_path(@group), method: :post, class: "leave-btn btn btn-important #{@group.last_admin?(current_user) ? 'disabled' : ''}", data: {confirm: t('common.sure')}
88+
= link_to t('.button.leave'), leave_group_path(@group), method: :post, class: "leave-btn btn btn-important #{'disabled' if @group.last_admin?(current_user)}", data: {confirm: t('common.sure')}
8989
= link_to t('common.button.back'), :back, class: 'btn btn-important'

lib/enmeshed/connector.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def pending_relationships
7070
end
7171

7272
# @return [Boolean] Whether the relationship was accepted successfully.
73-
def accept_relationship(relationship_id)
73+
def accept_relationship(relationship_id) # rubocop:disable Naming/PredicateMethod
7474
response = connection.put("/api/v2/Relationships/#{relationship_id}/Accept")
7575
Rails.logger.debug do
7676
"Enmeshed::ConnectorApi accepted the relationship; connector response status is #{response.status}"
@@ -80,7 +80,7 @@ def accept_relationship(relationship_id)
8080
end
8181

8282
# @return [Boolean] Whether the relationship was rejected successfully.
83-
def reject_relationship(relationship_id)
83+
def reject_relationship(relationship_id) # rubocop:disable Naming/PredicateMethod
8484
response = connection.put("/api/v2/Relationships/#{relationship_id}/Reject")
8585
Rails.logger.debug do
8686
'Enmeshed::ConnectorApi rejected the relationship; ' \

0 commit comments

Comments
 (0)