Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Nov 27, 2024
1 parent e289253 commit 7f64f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-core/driver_cleanup.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module PlaceOS::Core::DriverCleanup
local = Dir.new(DriverStore::BINARY_PATH).children
running = running_drivers
stale = local - running
FileUtils.rm_rf(stale.map { |file| Path[DriverStore::BINARY_PATH, file] })
FileUtils.rm_rf(stale.map { |file| Path[DriverStore::BINARY_PATH, file] }) unless stale.empty?
end

private def self.arch
Expand Down

0 comments on commit 7f64f88

Please sign in to comment.