Commit 23562699 authored by Stan Hu's avatar Stan Hu

Merge branch 'frozen-string-enable-vestigial' into 'master'

Enable frozen string in vestigial files

See merge request gitlab-org/gitlab-ce!21665
parents e21f171d 0bdd2ed5
# 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