Commit 0bdd2ed5 authored by gfyoung's avatar gfyoung

Enable frozen string in vestigial files

Partially addresses #47424.
parent b9ea4e35
# frozen_string_literal: true
module ProjectServicesLoggable module ProjectServicesLoggable
def log_info(message, params = {}) def log_info(message, params = {})
message = build_message(message, params) message = build_message(message, params)
......
# frozen_string_literal: true
class ActiveHookFilter class ActiveHookFilter
def initialize(hook) def initialize(hook)
@hook = hook @hook = hook
......
# frozen_string_literal: true
# BranchFilterValidator # BranchFilterValidator
# #
# Custom validator for branch names. Squishes whitespace and ignores empty # Custom validator for branch names. Squishes whitespace and ignores empty
......
# frozen_string_literal: true
class JsRegexValidator < ActiveModel::EachValidator class JsRegexValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value) def validate_each(record, attribute, value)
return true if value.blank? return true if value.blank?
......
---
title: Enable frozen string in vestigial files
merge_request:
author: gfyoung
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment