Skip to content

Commit

Permalink
Fix unused variable warning (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle authored Jan 5, 2025
1 parent 9cfb305 commit 5e32b48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Generator/Sources/SwiftWinRT/createProjection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ internal func createProjection(commandLineArguments: CommandLineArguments, proje
let assembly = try winMDLoadContext.load(path: filePath)
let assemblyDocumentation = commandLineArguments.noDocs ? nil
: try tryLoadDocumentation(assemblyPath: filePath, locales: commandLineArguments.locales)
let (moduleName, moduleConfig) = projectionConfig.getModule(assemblyName: assembly.name)
let module = projection.modulesByName[moduleName]
?? projection.addModule(name: moduleName)
let (moduleName, _) = projectionConfig.getModule(assemblyName: assembly.name)
let module = projection.modulesByName[moduleName] ?? projection.addModule(name: moduleName)
module.addAssembly(assembly, documentation: assemblyDocumentation)
}

Expand Down

0 comments on commit 5e32b48

Please sign in to comment.