[ https://issues.apache.org/jira/browse/AVRO-3354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486883#comment-17486883 ]
ASF subversion and git services commented on AVRO-3354: ------------------------------------------------------- Commit 9ca68cb782a98badcbd24d0503777d6e45b0ab2f in avro's branch refs/heads/master from Kyle Schoonover [ https://gitbox.apache.org/repos/asf?p=avro.git;h=9ca68cb ] AVRO-3354 Simplified if statements (#1505) Co-authored-by: Kyle T. Schoonover <kyle.t.schoono...@nordstrom.com> > Simplify If statements in CodeGen > --------------------------------- > > Key: AVRO-3354 > URL: https://issues.apache.org/jira/browse/AVRO-3354 > Project: Apache Avro > Issue Type: Improvement > Components: csharp > Affects Versions: 1.11.1 > Reporter: Kyle Schoonover > Priority: Minor > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Simple if statements can be converted to conditionals. Specifically if one > thing is happening in each block: > ie: > {code:java} > if (nullible) > { > return $"System.Nullable<{typeof(bool)}>"; > } > else > { > return typeof(bool).ToString(); > }{code} > can become: > {code:java} > return nullible ? $"System.Nullable<{typeof(bool)}>" : > typeof(bool).ToString(); {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)