Enable frozen string in vestigial files

Partially addresses #47424.
This commit is contained in:
gfyoung 2018-09-11 02:05:23 -07:00
parent b9ea4e35ac
commit 0bdd2ed577
5 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# 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)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ActiveHookFilter class ActiveHookFilter
def initialize(hook) def initialize(hook)
@hook = hook @hook = hook

View file

@ -1,3 +1,5 @@
# 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

View file

@ -1,3 +1,5 @@
# 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?

View file

@ -0,0 +1,5 @@
---
title: Enable frozen string in vestigial files
merge_request:
author: gfyoung
type: performance