mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Fix Style/GuardClause
in WebfingerResource
(#35531)
This commit is contained in:
parent
038de44110
commit
2acc942bb4
|
@ -54,11 +54,9 @@ class WebfingerResource
|
|||
end
|
||||
|
||||
def username_from_acct
|
||||
if domain_matches_local?
|
||||
local_username
|
||||
else
|
||||
raise ActiveRecord::RecordNotFound
|
||||
end
|
||||
raise ActiveRecord::RecordNotFound unless domain_matches_local?
|
||||
|
||||
local_username
|
||||
end
|
||||
|
||||
def split_acct
|
||||
|
|
Loading…
Reference in New Issue
Block a user