Skip to content

Commit 96af963

Browse files
committed
removed redundant else
1 parent 434aee6 commit 96af963

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

XMapLib/MapFunctions.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
#include <map>
33
namespace sds::Utilities::MapFunctions
44
{
5-
/// <summary>
6-
/// Verifies that the key value is in the map{T,H} and sets a reference arg to the value
7-
/// if found.
8-
/// </summary>
5+
/// <summary>Verifies that the key value is in the map{T,H} and sets a reference arg to the value if found.</summary>
96
/// <param name="keyValue">key value to check</param>
107
/// <param name="curMap">map of T,H to check the key</param>
118
/// <param name="retVal">will be set to the value the key points to, if found</param>
@@ -19,9 +16,6 @@ namespace sds::Utilities::MapFunctions
1916
retVal = it->second;
2017
return true;
2118
}
22-
else
23-
{
24-
return false;
25-
}
19+
return false;
2620
}
2721
}

0 commit comments

Comments
 (0)