diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-09-11 02:05:23 -0700 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-09-11 02:06:35 -0700 |
commit | 0bdd2ed5776bdb18c4ee81b3381a55305c940bc4 (patch) | |
tree | 8f739b38875d003c472f6ebd132abad39ce704ae /app/validators | |
parent | b9ea4e35ac679a87ea16ca01a5f02bd96b3b16c3 (diff) | |
download | gitlab-ce-0bdd2ed5776bdb18c4ee81b3381a55305c940bc4.tar.gz |
Enable frozen string in vestigial files
Partially addresses #47424.
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/branch_filter_validator.rb | 2 | ||||
-rw-r--r-- | app/validators/js_regex_validator.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/validators/branch_filter_validator.rb b/app/validators/branch_filter_validator.rb index ef482aaaa63..6a0899be850 100644 --- a/app/validators/branch_filter_validator.rb +++ b/app/validators/branch_filter_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # BranchFilterValidator # # Custom validator for branch names. Squishes whitespace and ignores empty diff --git a/app/validators/js_regex_validator.rb b/app/validators/js_regex_validator.rb index a515af7b919..be715967b4a 100644 --- a/app/validators/js_regex_validator.rb +++ b/app/validators/js_regex_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class JsRegexValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) return true if value.blank? |