rubocop: fix various issues

This commit is contained in:
lllusion3469
2020-05-11 01:08:18 +02:00
parent 0d5e31868f
commit 70beb7288d
3 changed files with 10 additions and 12 deletions

View File

@@ -40,15 +40,15 @@ module Sources
end
def self.stash_id_from_url(url)
if url =~ STASH
$~[:post_id].downcase
else
nil
end
end
if url =~ STASH
$~[:post_id].downcase
else
nil
end
end
def stash_id
[url, referer_url].map{ |x| self.class.stash_id_from_url(x) }.compact.first
[url, referer_url].map { |x| self.class.stash_id_from_url(x) }.compact.first
end
end
end