0
0
Fork 0

Fix Style/RedundantReturn cop (#28391)

This commit is contained in:
Matt Jankowski 2023-12-18 04:50:51 -05:00 committed by GitHub
parent 89d468ada7
commit 0e5b8fc46b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 20 deletions

View file

@ -52,7 +52,7 @@ class OStatus::TagManager
ActivityPub::TagManager.instance.uri_to_local_id(tag)
else
matches = Regexp.new("objectId=([\\d]+):objectType=#{expected_type}").match(tag)
return matches[1] unless matches.nil?
matches[1] unless matches.nil?
end
end