about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-18 17:38:14 -0500
committerGitHub <noreply@github.com>2023-02-19 07:38:14 +0900
commit81ad6c2e39393ff20450385cb37dd9bf6e6651e5 (patch)
treee90ce3b793e696928a898251f75d9ab99ee3b65b /app
parentac3561098e9cd1fd1ccee558295eb9f3430099d6 (diff)
Autofix Rubocop Style/StringLiterals (#23695)
Diffstat (limited to 'app')
-rw-r--r--app/lib/webfinger.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/webfinger.rb b/app/lib/webfinger.rb
index 7c0c10c33..42ddef47b 100644
--- a/app/lib/webfinger.rb
+++ b/app/lib/webfinger.rb
@@ -99,7 +99,7 @@ class Webfinger
   end
 
   def standard_url
-    if @domain.end_with? ".onion"
+    if @domain.end_with? '.onion'
       "http://#{@domain}/.well-known/webfinger?resource=#{@uri}"
     else
       "https://#{@domain}/.well-known/webfinger?resource=#{@uri}"
@@ -107,7 +107,7 @@ class Webfinger
   end
 
   def host_meta_url
-    if @domain.end_with? ".onion"
+    if @domain.end_with? '.onion'
       "http://#{@domain}/.well-known/host-meta"
     else
       "https://#{@domain}/.well-known/host-meta"