[
https://issues.apache.org/jira/browse/AVRO-3354?focusedWorklogId=720743&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-720743
]
ASF GitHub Bot logged work on AVRO-3354:
----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Feb/22 09:10
Start Date: 04/Feb/22 09:10
Worklog Time Spent: 10m
Work Description: martin-g commented on pull request #1505:
URL: https://github.com/apache/avro/pull/1505#issuecomment-1029784637
Thank you, @KyleSchoonover !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 720743)
Time Spent: 0.5h (was: 20m)
> 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: 0.5h
> 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)