Skip to content

Commit 78e9744

Browse files
committed
Refactor helper function to a local method.
1 parent 9b10b80 commit 78e9744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MySqlConnector/Core/SchemaProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ private Task FillDataSourceInformation(IOBehavior ioBehavior, DataTable dataTabl
110110
dataTable.Rows.Add(row);
111111

112112
return Utility.CompletedTask;
113-
}
114113

115-
private string GetVersion(Version v) => $"{v.Major:00}.{v.Minor:00}.{v.Build:0000}";
114+
static string GetVersion(Version v) => "{0:00}.{1:00}.{2:0000}".FormatInvariant(v.Major, v.Minor, v.Build);
115+
}
116116

117117
private Task FillMetadataCollections(IOBehavior ioBehavior, DataTable dataTable, CancellationToken cancellationToken)
118118
{

0 commit comments

Comments
 (0)