Fix "file “config.json” couldn’t be opened" error when pruning (#525)

* Fix "file “config.json” couldn’t be opened" error when pruning

* No need to use the ";"
This commit is contained in:
Nikolay Edigaryev 2023-06-23 19:23:25 +04:00 committed by GitHub
parent 0608b2b9d1
commit 62a34bf89f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -98,10 +98,11 @@ struct Prune: AsyncParsableCommand {
break
}
cacheReclaimedBytes += try prunable.sizeBytes()
try prunable.delete()
try SentrySDK.span?.setExtra(value: prunable.sizeBytes(), key: prunable.url.path)
try SentrySDK.span?.setExtra(value: prunable.sizeBytes(), key: prunable.url.path);
cacheReclaimedBytes += try prunable.sizeBytes()
try prunable.delete()
}
SentrySDK.span?.setMeasurement(name: "gc_disk_reclaimed", value: cacheReclaimedBytes as NSNumber, unit: MeasurementUnitInformation.byte);