Skip to content

Commit

Permalink
Fix no output when Client=False,TestClient=True (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
severnt authored Jan 22, 2024
1 parent 941f500 commit 3a78b54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/protoc-gen-grpc-swift/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ func main(args: [String]) throws {
binaryFile.content = serializedFileDescriptorProto
response.file.append(binaryFile)
}
if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer) {
if !fileDescriptor.services.isEmpty
&& (options.generateClient || options.generateServer || options.generateTestClient)
{
var grpcFile = Google_Protobuf_Compiler_CodeGeneratorResponse.File()
let grpcFileName = uniqueOutputFileName(
component: "grpc",
Expand Down

0 comments on commit 3a78b54

Please sign in to comment.