aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppet.com>2018-07-09 20:31:15 -0700
committerJosh Cooper <josh@puppet.com>2018-07-10 11:03:14 -0700
commite9fbca9a31619491734dfdf03ceb0edb6908d0a9 (patch)
tree9aad25080d16190c498bdb8c065dca819ee77699
parenta932efb4a3f8ed06ce96f52f4df6584eb2b9b8bd (diff)
downloadpuppet-hosts_core-e9fbca9a31619491734dfdf03ceb0edb6908d0a9.tar.gz
puppet-hosts_core-e9fbca9a31619491734dfdf03ceb0edb6908d0a9.tar.bz2
Remove Lint/AssignmentInCondition violation
-rw-r--r--spec/lib/puppet_spec/files.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/puppet_spec/files.rb b/spec/lib/puppet_spec/files.rb
index 644d3fe..28413cd 100644
--- a/spec/lib/puppet_spec/files.rb
+++ b/spec/lib/puppet_spec/files.rb
@@ -7,7 +7,8 @@ require 'pathname'
module PuppetSpec::Files
def self.cleanup
@global_tempfiles ||= []
- while path = @global_tempfiles.pop
+ until @global_tempfiles.empty?
+ path = @global_tempfiles.pop
Dir.unstub(:entries)
FileUtils.rm_rf path, secure: true
end