Skip to content

Commit 8385afb

Browse files
committed
check codeGenerationRequest.services
1 parent ec55cd5 commit 8385afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GRPCCodeGen/Internal/Translator/IDLToStructuredSwiftTranslator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct IDLToStructuredSwiftTranslator: Translator {
7373
}
7474

7575
let imports: [ImportDescription]
76-
if codeBlocks.isEmpty {
76+
if codeGenerationRequest.services.isEmpty {
7777
imports = []
7878
codeBlocks.append(
7979
CodeBlock(comment: .inline("This file contained no services."))

0 commit comments

Comments
 (0)