Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Oct 9, 2017
1 parent 27a9881 commit 37565d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void CleanConnectionsImpl()
void CheckDisposedImpl()
{
if (_disposed)
throw new ObjectDisposedException(typeof(Pool).Name);
throw new ObjectDisposedException(nameof(Pool));
}

FbConnectionInternal CreateNewConnectionIfPossibleImpl(FbConnectionString connectionString)
Expand Down Expand Up @@ -259,7 +259,7 @@ void CleanupCallback(object o)
void CheckDisposed()
{
if (Volatile2.Read(ref _disposed) == 1)
throw new ObjectDisposedException(typeof(FbConnectionPoolManager).Name);
throw new ObjectDisposedException(nameof(FbConnectionPoolManager));
}
}
}

0 comments on commit 37565d2

Please sign in to comment.