Skip to content

Commit

Permalink
fix codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Apr 19, 2024
1 parent 6bdb8b5 commit 323e7c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rdmp.UI/LocationsMenu/ChoosePlatformDatabasesUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ private void btnUseYamlFile_Click(object sender, EventArgs e)
foreach (var item in docs.Select((value, i) => new { i, value }))
{
var value = item.value;
var index = item.i;

if (value == "CatalogueConnectionString") catalogueConnectionString = docs.ToList()[item.i + 1];
if (value == "DataExportConnectionString") dataExportConnectionString = docs.ToList()[item.i + 1];
Expand All @@ -413,6 +412,8 @@ private void btnUseYamlFile_Click(object sender, EventArgs e)
catch (Exception)
{
//Unable to parse yaml file
tbCatalogueConnectionString.Text = null;
tbDataExportManagerConnectionString.Text = null;
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.

};
Expand Down

0 comments on commit 323e7c9

Please sign in to comment.