diff --git a/protoc_gen_d/protoc-gen-d.d b/protoc_gen_d/protoc-gen-d.d index 2144e84..d93577c 100644 --- a/protoc_gen_d/protoc-gen-d.d +++ b/protoc_gen_d/protoc-gen-d.d @@ -43,7 +43,7 @@ class CodeGenerator import std.conv : to; import std.format : format; - with (request.compilerVersion) + if (request.compilerVersion) with (request.compilerVersion) protocVersion = format!"%d%03d%03d"(major, minor, patch); collectedMessageTypes.clear;