Skip to content

Commit

Permalink
Fix #6
Browse files Browse the repository at this point in the history
 Don't crash when protoc do not specify its own version.
  • Loading branch information
dcarp authored Aug 11, 2018
1 parent 658c7ef commit 7b6fab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc_gen_d/protoc-gen-d.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b6fab6

Please sign in to comment.