-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Less logging of DstvExceptions to the console #5
Conversation
@@ -17,6 +17,7 @@ public static async Task<IEnumerable<DstvElement>> GetElementsAsync(ReaderContex | |||
foreach (var holeNote in holeBlocks.SelectMany(holeList => holeList)) | |||
try | |||
{ | |||
if (holeNote.Equals(ContourType.BO.ToString(), StringComparison.Ordinal)) continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer the use of the nameof operator in these cases (e.g. nameof(ContourType.BO)
), but that's pretty personal...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me too!
@@ -17,6 +17,7 @@ public static async Task<IEnumerable<DstvElement>> GetElementsAsync(ReaderContex | |||
foreach (var holeNote in holeBlocks.SelectMany(holeList => holeList)) | |||
try | |||
{ | |||
if (holeNote.Equals(ContourType.BO.ToString(), StringComparison.Ordinal)) continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
@@ -55,6 +57,7 @@ public static async Task<IEnumerable<DstvElement>> GetElementsAsync(ReaderContex | |||
foreach (var bendNote in bendBlocks.SelectMany(bendList => bendList)) | |||
try | |||
{ | |||
if (bendNote.Equals(ContourType.KA.ToString(), StringComparison.Ordinal)) continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like there is a lot of repetition going on here...should we make a generic function for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've simplified the code
@EjaYF Can you rebase and resolve the conflicts? |
9aa1bbd
to
0300106
Compare
This fix addresses issues where DstvExceptions appear in the console log unnecessary.