Skip to content

Commit

Permalink
Remove unnecessary null check in generated code
Browse files Browse the repository at this point in the history
Signed-off-by: Pepijn Van Eeckhoudt <[email protected]>
  • Loading branch information
pepijnve committed Dec 6, 2017
1 parent 2a6e29d commit f17cbd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ public static void dumpStruct(JrpcgenStruct s) {
//
for (int size = s.elements.size(); size > 1; --size) {
decl = (JrpcgenDeclaration) decls.nextElement();
out.print(" if( $this." + decl.identifier + " != null) " + codingMethod(decl, true, "$this"));
out.print(" " + codingMethod(decl, true, "$this"));
}
decl = (JrpcgenDeclaration) decls.nextElement();
out.println(" $this = $this." + decl.identifier + ";");
Expand Down

0 comments on commit f17cbd2

Please sign in to comment.