aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-06-03 20:53:05 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-06-03 20:53:05 +0900
commitf7fd680a6de195d78286332c6021afe068ad6bd6 (patch)
tree824902502deda37edd3495542cd2362faa8f63fe /railties/lib/rails/commands
parentfa31a06de58af6822080ebb69775340fd6219e8d (diff)
downloadrails-f7fd680a6de195d78286332c6021afe068ad6bd6.tar.gz
rails-f7fd680a6de195d78286332c6021afe068ad6bd6.tar.bz2
rails-f7fd680a6de195d78286332c6021afe068ad6bd6.zip
Remove unnecessary test
Since #32289, `Spellchecker.suggest` returns only one value, multiple suggestions not output.
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/server/server_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb
index 77b6c1f65d..5593840c71 100644
--- a/railties/lib/rails/commands/server/server_command.rb
+++ b/railties/lib/rails/commands/server/server_command.rb
@@ -293,10 +293,10 @@ module Rails
Run `rails server --help` for more options.
MSG
else
- suggestions = Rails::Command::Spellchecker.suggest(server, from: RACK_SERVERS)
+ suggestion = Rails::Command::Spellchecker.suggest(server, from: RACK_SERVERS)
<<~MSG
- Could not find server "#{server}". Maybe you meant #{suggestions.inspect}?
+ Could not find server "#{server}". Maybe you meant #{suggestion.inspect}?
Run `rails server --help` for more options.
MSG
end