Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
Update exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
davreev committed Aug 29, 2018
1 parent 78f2f3f commit 97290ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SpatialSlur/Collections/PriorityQueue.cs
Expand Up @@ -18,9 +18,6 @@ public class PriorityQueue<K, V>
{
#region Static Members

private const string _emptyMessage = "The queue is empty.";


/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -107,7 +104,7 @@ public bool IsEmpty
get
{
if (IsEmpty)
throw new InvalidOperationException(_emptyMessage);
throw new InvalidOperationException("The queue is empty.");

return _items[0];
}
Expand Down

0 comments on commit 97290ad

Please sign in to comment.