Skip to content

Commit

Permalink
Restored prior formatting of nested ternary expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Feb 6, 2024
1 parent 8bc9374 commit 796cb12
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Source/SuperLinq/Exclude.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ internal ExcludeCollectionIterator(ICollection<T> source, Range range)
/// <summary>
/// Gets the number of elements in the source collection after excluding the specified portion of elements.
/// </summary>
public override int Count => _source.Count < _startIndex
? _source.Count
: _source.Count < _startIndex + _count
? _startIndex
: _source.Count - _count;
public override int Count =>
_source.Count < _startIndex ? _source.Count :
_source.Count < _startIndex + _count ? _startIndex :
_source.Count - _count;

/// <inheritdoc cref="IEnumerable{T}" />
protected override IEnumerable<T> GetEnumerable() =>
Expand Down Expand Up @@ -172,11 +171,10 @@ internal ExcludeListIterator(IList<T> source, Range range)
/// <summary>
/// Gets the number of elements in the source collection after excluding the specified portion of elements.
/// </summary>
public override int Count => _source.Count < _startIndex
? _source.Count
: _source.Count < _startIndex + _count
? _startIndex
: _source.Count - _count;
public override int Count =>
_source.Count < _startIndex ? _source.Count :
_source.Count < _startIndex + _count ? _startIndex :
_source.Count - _count;

/// <inheritdoc cref="IEnumerable{T}" />
protected override IEnumerable<T> GetEnumerable()
Expand Down

0 comments on commit 796cb12

Please sign in to comment.