Skip to content

Commit

Permalink
add {} for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
vdaron committed Aug 20, 2024
1 parent 5337d71 commit c0f0911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MusicXml/MusicXmlParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,14 @@ private static Note GetNote(XmlNode noteNode)

var tieNode = noteNode.SelectSingleNode("tie");
if(tieNode?.Attributes != null)
{
note.Tie = tieNode.Attributes["type"]?.Value switch
{
"start" => Tie.Start,
"stop" => Tie.Stop,
_ => Tie.NotTied
};
}

return note;
}
Expand Down

0 comments on commit c0f0911

Please sign in to comment.