Rubocop fix: Style/SlicingWithRange

This commit is contained in:
Jake Spain 2023-04-21 08:43:11 -04:00
parent fc54949e8d
commit 649aef7339
No known key found for this signature in database
GPG key ID: BC1C4DA0A085E113

View file

@ -302,7 +302,7 @@ module Vmpooler
# Very simple filter for Litmus jobs - just count them coming through for the moment. # Very simple filter for Litmus jobs - just count them coming through for the moment.
metrics.increment("usage_litmus.#{user}.#{operation}.#{poolname}") metrics.increment("usage_litmus.#{user}.#{operation}.#{poolname}")
else else
url_parts = jenkins_build_url.split('/')[2..-1] url_parts = jenkins_build_url.split('/')[2..]
jenkins_instance = url_parts[0].gsub('.', '_') jenkins_instance = url_parts[0].gsub('.', '_')
value_stream_parts = url_parts[2].split('_') value_stream_parts = url_parts[2].split('_')
value_stream_parts = value_stream_parts.map { |s| s.gsub('.', '_') } value_stream_parts = value_stream_parts.map { |s| s.gsub('.', '_') }