diff options
author | Josh Cooper <josh@puppet.com> | 2018-07-09 20:31:15 -0700 |
---|---|---|
committer | Josh Cooper <josh@puppet.com> | 2018-07-10 11:03:14 -0700 |
commit | e9fbca9a31619491734dfdf03ceb0edb6908d0a9 (patch) | |
tree | 9aad25080d16190c498bdb8c065dca819ee77699 | |
parent | a932efb4a3f8ed06ce96f52f4df6584eb2b9b8bd (diff) | |
download | puppet-hosts_core-e9fbca9a31619491734dfdf03ceb0edb6908d0a9.tar.gz puppet-hosts_core-e9fbca9a31619491734dfdf03ceb0edb6908d0a9.tar.bz2 |
Remove Lint/AssignmentInCondition violation
-rw-r--r-- | spec/lib/puppet_spec/files.rb | 3 |
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 |