Skip to content

Commit

Permalink
Reorder to put the more common case first
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Dec 5, 2024
1 parent 1a4fad4 commit 6e220d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BinlogTool/ListProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ private void VisitProperties(Record record, IEnumerable properties)

foreach (var kvp in properties)
{
if (kvp is DictionaryEntry entry)
if (kvp is KeyValuePair<string, string> keyValuePair)
{
VisitProperty(record, Convert.ToString(entry.Key), Convert.ToString(entry.Value));
VisitProperty(record, keyValuePair.Key, keyValuePair.Value);
}
else if (kvp is KeyValuePair<string, string> keyValuePair)
else if (kvp is DictionaryEntry entry)
{
VisitProperty(record, keyValuePair.Key, keyValuePair.Value);
VisitProperty(record, Convert.ToString(entry.Key), Convert.ToString(entry.Value));
}
}
}
Expand Down

0 comments on commit 6e220d0

Please sign in to comment.