Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/harbor/query.rb')
-rw-r--r--lib/gitlab/harbor/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/harbor/query.rb b/lib/gitlab/harbor/query.rb
index fc0ac539e07..2d03412fde2 100644
--- a/lib/gitlab/harbor/query.rb
+++ b/lib/gitlab/harbor/query.rb
@@ -8,7 +8,7 @@ module Gitlab
attr_reader :client, :repository_id, :artifact_id, :search, :limit, :sort, :page
DEFAULT_LIMIT = 10
- SORT_REGEX = %r{\A(creation_time|update_time|name) (asc|desc)\z}.freeze
+ SORT_REGEX = %r{\A(creation_time|update_time|name) (asc|desc)\z}
validates :page, numericality: { greater_than: 0, integer: true }, allow_blank: true
validates :limit, numericality: { greater_than: 0, less_than_or_equal_to: 25, integer: true }, allow_blank: true