Format code

This commit is contained in:
lindexi 2020-07-11 11:49:10 +08:00
parent 1b6adc58f6
commit 6cc25f892d

View File

@ -65,8 +65,7 @@ namespace HandyControl.Tools
public Deque(IEnumerable<T> backCollection, IEnumerable<T> frontCollection)
{
if (backCollection == null && frontCollection == null)
throw new ArgumentException("Collections cannot both be null");
if (backCollection == null && frontCollection == null) throw new ArgumentException("Collections cannot both be null");
_front = frontCollection != null ? new List<T>(frontCollection) : new List<T>();
_back = backCollection != null ? new List<T>(backCollection) : new List<T>();