diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-18 17:38:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 07:38:14 +0900 |
commit | 81ad6c2e39393ff20450385cb37dd9bf6e6651e5 (patch) | |
tree | e90ce3b793e696928a898251f75d9ab99ee3b65b /lib | |
parent | ac3561098e9cd1fd1ccee558295eb9f3430099d6 (diff) |
Autofix Rubocop Style/StringLiterals (#23695)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/emoji_cli.rb | 2 | ||||
-rw-r--r-- | lib/rails/engine_extensions.rb | 2 | ||||
-rw-r--r-- | lib/tasks/mastodon.rake | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/mastodon/emoji_cli.rb b/lib/mastodon/emoji_cli.rb index a3e947909..feb77107f 100644 --- a/lib/mastodon/emoji_cli.rb +++ b/lib/mastodon/emoji_cli.rb @@ -49,7 +49,7 @@ module Mastodon next if filename.start_with?('._') shortcode = [options[:prefix], filename, options[:suffix]].compact.join - custom_emoji = CustomEmoji.local.find_by("LOWER(shortcode) = ?", shortcode.downcase) + custom_emoji = CustomEmoji.local.find_by('LOWER(shortcode) = ?', shortcode.downcase) if custom_emoji && !options[:overwrite] skipped += 1 diff --git a/lib/rails/engine_extensions.rb b/lib/rails/engine_extensions.rb index 4e3767db9..1f5c2cd6c 100644 --- a/lib/rails/engine_extensions.rb +++ b/lib/rails/engine_extensions.rb @@ -3,7 +3,7 @@ module Rails # Rewrite task loading code to filter digitalocean.rake task def run_tasks_blocks(app) Railtie.instance_method(:run_tasks_blocks).bind_call(self, app) - paths["lib/tasks"].existent.reject { |ext| ext.end_with?('digitalocean.rake') }.sort.each { |ext| load(ext) } + paths['lib/tasks'].existent.reject { |ext| ext.end_with?('digitalocean.rake') }.sort.each { |ext| load(ext) } end end end diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 477daa01b..179a730bc 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -264,7 +264,7 @@ namespace :mastodon do env['S3_ENDPOINT'] = prompt.ask('Storj DCS endpoint URL:') do |q| q.required true - q.default "https://gateway.storjshare.io" + q.default 'https://gateway.storjshare.io' q.modify :strip end |