From 1cf00a5a4c75de00b98128a706cd34014f94a776 Mon Sep 17 00:00:00 2001 From: Tim Sharpe Date: Sun, 3 Feb 2019 10:44:25 +1100 Subject: [PATCH] (rubocop) Fix Style/ZeroLengthPredicate --- lib/vmfloaty/pooler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmfloaty/pooler.rb b/lib/vmfloaty/pooler.rb index 8bdef2c..539e85b 100644 --- a/lib/vmfloaty/pooler.rb +++ b/lib/vmfloaty/pooler.rb @@ -46,7 +46,7 @@ class Pooler os_string = os_string.chomp('+') - if os_string.size == 0 + if os_string.empty? raise MissingParamError, 'No operating systems provided to obtain.' end