Fix Style/GuardClause in WebfingerResource (#35531)
This commit is contained in:
parent
038de44110
commit
2acc942bb4
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue