From 1aea79a9a1781982decf41006110fb0a94a62b10 Mon Sep 17 00:00:00 2001 From: Tim Sharpe Date: Sun, 3 Feb 2019 11:25:02 +1100 Subject: [PATCH] (rubocop) Fix Style/SymbolArray --- lib/vmfloaty/nonstandard_pooler.rb | 2 +- lib/vmfloaty/pooler.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vmfloaty/nonstandard_pooler.rb b/lib/vmfloaty/nonstandard_pooler.rb index aacb6bb..0e1e449 100644 --- a/lib/vmfloaty/nonstandard_pooler.rb +++ b/lib/vmfloaty/nonstandard_pooler.rb @@ -50,7 +50,7 @@ class NonstandardPooler end modify_hash.each do |key, value| - unless [:reason, :reserved_for_reason].include? key + unless %i[reason reserved_for_reason].include? key raise ModifyError, "Configured service type does not support modification of #{key}" end end diff --git a/lib/vmfloaty/pooler.rb b/lib/vmfloaty/pooler.rb index 2c0b934..023f971 100644 --- a/lib/vmfloaty/pooler.rb +++ b/lib/vmfloaty/pooler.rb @@ -61,7 +61,7 @@ class Pooler end modify_hash.keys.each do |key| - unless [:tags, :lifetime, :disk].include? key + unless %i[tags lifetime disk].include? key raise ModifyError, "Configured service type does not support modification of #{key}." end end