From 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 28 Feb 2019 19:57:34 +0100 Subject: Ran standardrb --fix on the whole codebase Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_. --- lib/container_registry/path.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/container_registry/path.rb') diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb index 9b2a61cdedc..b9cc49cb379 100644 --- a/lib/container_registry/path.rb +++ b/lib/container_registry/path.rb @@ -27,16 +27,16 @@ module ContainerRegistry end def components - @components ||= @path.split('/') + @components ||= @path.split("/") end # rubocop: disable CodeReuse/ActiveRecord def nodes raise InvalidRegistryPathError unless valid? - @nodes ||= components.size.downto(2).map do |length| - components.take(length).join('/') - end + @nodes ||= components.size.downto(2).map { |length| + components.take(length).join("/") + } end # rubocop: enable CodeReuse/ActiveRecord @@ -66,7 +66,7 @@ module ContainerRegistry def repository_name return unless has_project? - @path.remove(%r(^#{Regexp.escape(project_path)}/?)) + @path.remove(%r{^#{Regexp.escape(project_path)}/?}) end def project_path -- cgit v1.2.1