Skip to content

Commit 84a8d72

Browse files
authored
remove error checking in hash-based accessor (#1326)
1 parent e07165d commit 84a8d72

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedList.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public T getItem(int... index) {
146146
* @return the item with the hash, null if not found
147147
*/
148148
public T getItemByHash(long hash){
149-
if (!this.collection.containsKey(hash)) return null;
150149
return this.collection.get(hash);
151150
}
152151

0 commit comments

Comments
 (0)