Skip to content

Commit

Permalink
remove extra string cast from KeyNotFound error in map
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremiah Corrado <[email protected]>
  • Loading branch information
jeremiah-corrado committed Jul 31, 2023
1 parent b78a3ef commit 58df97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/standard/Map.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ module Map {

var (_, slot) = table.findAvailableSlot(k);
if !table.isSlotFull(slot) {
throw new KeyNotFoundError(k:string);
throw new KeyNotFoundError(k);
}
ref result = table.table[slot].val;
return result;
Expand Down

0 comments on commit 58df97d

Please sign in to comment.