Skip to content

Conversation

@adamruzicka
Copy link
Contributor

No description provided.

Copy link
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @adamruzicka !

include ::Sinatra::Authorization::Helpers

TASK_UPDATE_REGEXP_PATH = %r{/tasks/(\S+)/(update|done)}.freeze
TASK_UPDATE_REGEXP_PATH = %r{/tasks/(\S+)/(update|done)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure: is this due to Ruby 3.0 Regex objects should be frozen by default or it triggered an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently it is an unnecessary noop

lib/smart_proxy_dynflow/api.rb:16:33: C: [Correctable] Style/RedundantFreeze: Do not freeze immutable objects, as freezing them has no effect.
      TASK_UPDATE_REGEXP_PATH = %r{/tasks/(\S+)/(update|done)}.freeze
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@ofedoren ofedoren merged commit 6d132c2 into theforeman:master Jan 5, 2026
9 of 10 checks passed
@adamruzicka adamruzicka deleted the deps branch January 5, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants