mirror of https://github.com/mastodon/mastodon.git
fix ruby linting issue
parent
7dfaa9de3d
commit
755f5b269a
|
@ -85,7 +85,7 @@ class Admin::Metrics::Dimension::SoftwareVersionsDimension < Admin::Metrics::Dim
|
|||
def imagemagick_version
|
||||
return if Rails.configuration.x.use_vips
|
||||
|
||||
command = %w[magick convert].find { |cmd| system("which #{cmd} > /dev/null 2>&1") }
|
||||
command = %w(magick convert).find { |cmd| system("which #{cmd} > /dev/null 2>&1") }
|
||||
version = `#{command} -version`.match(/Version: ImageMagick ([\d\.]+)/)[1]
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue