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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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]