2
0

Update rubocop to version 1.79.0 (#35502)

This commit is contained in:
Matt Jankowski
2025-07-25 03:22:05 -04:00
committed by GitHub
parent 960f693219
commit 2e35defeec
10 changed files with 16 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
class Api::V1::Admin::TagsController < Api::BaseController
include Authorization
before_action -> { authorize_if_got_token! :'admin:read' }, only: [:index, :show]
before_action -> { authorize_if_got_token! :'admin:write' }, only: :update

View File

@@ -45,7 +45,9 @@ class EmojiFormatter
i += 1
if inside_shortname && text[i] == ':'
inside_shortname = false
# https://github.com/rubocop/rubocop/issues/14383
# False positive in line below, remove disable when resolved
inside_shortname = false # rubocop:disable Lint/UselessAssignment
shortcode = text[(shortname_start_index + 1)..(i - 1)]
char_after = text[i + 1]