Fix Style/GuardClause in WebfingerResource (#35531)
This commit is contained in:
@@ -54,11 +54,9 @@ class WebfingerResource
|
||||
end
|
||||
|
||||
def username_from_acct
|
||||
if domain_matches_local?
|
||||
raise ActiveRecord::RecordNotFound unless domain_matches_local?
|
||||
|
||||
local_username
|
||||
else
|
||||
raise ActiveRecord::RecordNotFound
|
||||
end
|
||||
end
|
||||
|
||||
def split_acct
|
||||
|
||||
Reference in New Issue
Block a user