Fix Style/GuardClause in WebfingerResource (#35531)

This commit is contained in:
Matt Jankowski 2025-07-28 04:39:11 -04:00 committed by GitHub
parent 038de44110
commit 2acc942bb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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