Skip to content

Commit aed6a30

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] try...catch specific Exception
1 parent b41da1b commit aed6a30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps

src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/RansomNote.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static bool checkMagazineCompute(List<string> magazine, List<string> note
5353
throw new InvalidValueException("Value can't go below 0");
5454
}
5555
}
56-
catch
56+
catch (InvalidValueException)
5757
{
5858
return false;
5959
}

0 commit comments

Comments
 (0)