diff --git a/ProjectHoistingCrane/ProjectHoistingCrane/CollectionGenericObjects/ListGenericObjects.cs b/ProjectHoistingCrane/ProjectHoistingCrane/CollectionGenericObjects/ListGenericObjects.cs index b188810..9ca946d 100644 --- a/ProjectHoistingCrane/ProjectHoistingCrane/CollectionGenericObjects/ListGenericObjects.cs +++ b/ProjectHoistingCrane/ProjectHoistingCrane/CollectionGenericObjects/ListGenericObjects.cs @@ -50,11 +50,6 @@ public class ListGenericObjects : ICollectionGenericObjects } public T? Get(int position) { - // TODO проверка позиции - if (position < Count && position >= 0) - { - return _collection[position]; - } if (position < 0 || position >= Count) throw new PositionOutOfRangeException(position); if (_collection[position] == null) throw new ObjectNotFoundException(position); return null;