mirror of
https://github.com/munki/munki.git
synced 2026-05-18 20:28:30 -05:00
Quiet some compiler warnings about unmodified variables
This commit is contained in:
@@ -1011,8 +1011,8 @@ func processRemoval(
|
||||
if !packagesToRemove.isEmpty {
|
||||
// remove references for each package
|
||||
var packagesToReallyRemove = [String]()
|
||||
var pkgdata = await analyzeInstalledPkgs()
|
||||
var pkgReferences = pkgdata["pkg_references"] as? [String: [String]] ?? [:]
|
||||
let pkgdata = await analyzeInstalledPkgs()
|
||||
let pkgReferences = pkgdata["pkg_references"] as? [String: [String]] ?? [:]
|
||||
var pkgReferencesMessages = [String]()
|
||||
for pkg in packagesToRemove {
|
||||
displayDebug1("Considering \(pkg) for removal...")
|
||||
|
||||
@@ -401,7 +401,7 @@ func checkForUpdates(clientID: String? = nil, localManifestPath: String? = nil)
|
||||
}
|
||||
|
||||
// verify available license seats for optional installs
|
||||
if var optionalInstalls = installInfo["optional_installs"] as? [PlistDict],
|
||||
if let optionalInstalls = installInfo["optional_installs"] as? [PlistDict],
|
||||
!optionalInstalls.isEmpty
|
||||
{
|
||||
installInfo["optional_installs"] = updateAvailableLicenseSeats(optionalInstalls)
|
||||
|
||||
Reference in New Issue
Block a user