Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ package struct IDLToStructuredSwiftTranslator: Translator {
}
}

let imports: [ImportDescription]
let imports: [ImportDescription]?
if codeGenerationRequest.services.isEmpty {
imports = []
imports = nil
codeBlocks.append(
CodeBlock(comment: .inline("This file contained no services."))
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ final class IDLToStructuredSwiftTranslatorSnippetBasedTests: XCTestCase {
"""
/// Some really exciting license header 2023.


// This file contained no services.
"""
try self.assertIDLToStructuredSwiftTranslation(
Expand Down
Loading