Skip to content

Commit

Permalink
Merge pull request #42 from vb2ae/41-fix-code-scanning-alert-generic-…
Browse files Browse the repository at this point in the history
…catch-clause

fix generic catch clause
  • Loading branch information
vb2ae authored Oct 22, 2023
2 parents 1b5223e + 013f6e2 commit b9e5d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClientNoSqlDB/Storage/FileSystem/DbTableStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Stream OpenRead(string name, bool buffered = false)
{
return new FileStream(name, FileMode.OpenOrCreate, FileAccess.Read, FileShare.Read, buffered ? BufferSize : 4 * 1024);
}
catch
catch (IOException)
{

Thread.Sleep(100);
Expand All @@ -47,7 +47,7 @@ Stream OpenWrite(string name, bool buffered = false)
{
return new FileStream(name, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None, buffered ? BufferSize : 4 * 1024);
}
catch
catch (IOException)
{
Thread.Sleep(100);
}
Expand Down

0 comments on commit b9e5d91

Please # to comment.