Fix Style/GuardClause in WebfingerResource (#35531)
This commit is contained in:
1 parent
038de44110
commit
2acc942bb4
1 file changed
+3
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user