]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/remote_directory.rb
More rubocop cleanup
[chef.git] / cookbooks / chef / libraries / remote_directory.rb
index 65cb9c86d9b2f2e09721b8308f15686356cb6975..730535d445445f6cbe0a7446661bebea39c2bc56 100644 (file)
@@ -19,7 +19,7 @@ class Chef
             name !~ /(?:^|#{Regexp.escape(::File::SEPARATOR)})\.\.?$/
           end
         )
-        files_to_purge = files_to_purge - files_transferred
+        files_to_purge -= files_transferred
         purge_unmanaged_files(files_to_purge)
       end
     end