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
|
end
|
||||||
|
|
||||||
def username_from_acct
|
def username_from_acct
|
||||||
if domain_matches_local?
|
raise ActiveRecord::RecordNotFound unless domain_matches_local?
|
||||||
local_username
|
|
||||||
else
|
local_username
|
||||||
raise ActiveRecord::RecordNotFound
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def split_acct
|
def split_acct
|
||||||
|
|
Loading…
Reference in New Issue
Block a user