Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jun 29, 2024
1 parent f680480 commit 6ecc7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/timelines/public_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def show
def require_auth?
if truthy_param?(:local) and !truthy_param?(:remote)

Check failure on line 17 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
!Setting.timeline_preview_local
elsif truthy_param?(:remote) and !truthy_param?(:allow_local_only)
elsif truthy_param?(:remote) and !truthy_param?(:allow_local_only) and !truthy_param?(:local)

Check failure on line 19 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)

Check failure on line 19 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
!Setting.timeline_preview_remote
elsif (!truthy_param?(:remote) and truthy_param?(:allow_local_only)) or (truthy_param?(:remote) and truthy_param?(:local))

Check failure on line 21 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)

Check failure on line 21 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use || instead of or. (https://rubystyle.guide#no-and-or-or)

Check failure on line 21 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use && instead of and. (https://rubystyle.guide#no-and-or-or)
!Setting.timeline_preview
Expand Down

0 comments on commit 6ecc7e5

Please sign in to comment.