Skip to content

Commit 3a78b54

Browse files
authored
Fix no output when Client=False,TestClient=True (#1765)
1 parent 941f500 commit 3a78b54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/protoc-gen-grpc-swift/main.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ func main(args: [String]) throws {
156156
binaryFile.content = serializedFileDescriptorProto
157157
response.file.append(binaryFile)
158158
}
159-
if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer) {
159+
if !fileDescriptor.services.isEmpty
160+
&& (options.generateClient || options.generateServer || options.generateTestClient)
161+
{
160162
var grpcFile = Google_Protobuf_Compiler_CodeGeneratorResponse.File()
161163
let grpcFileName = uniqueOutputFileName(
162164
component: "grpc",

0 commit comments

Comments
 (0)