Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Nov 14, 2023
1 parent 1f7e633 commit 8d05586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/varnamevector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ function nextrange(vnv::VarNameVector, x)
# NOTE: We could of course attempt to make use of unused space, e.g. if we have an inactive
# range which can hold `x`, then we could just use that. Buuut the complexity of this is
# probably not worth it (at least at the moment).
max_inactive_range = isempty(vnv.inactive_ranges) ? 0 : maximum(last, vnv.inactive_ranges)
max_inactive_range =

Check warning on line 222 in src/varnamevector.jl

View check run for this annotation

Codecov / codecov/patch

src/varnamevector.jl#L222

Added line #L222 was not covered by tests
isempty(vnv.inactive_ranges) ? 0 : maximum(last, vnv.inactive_ranges)
offset = max(max_active_range, max_inactive_range)
return (offset + 1):(offset + length(x))

Check warning on line 225 in src/varnamevector.jl

View check run for this annotation

Codecov / codecov/patch

src/varnamevector.jl#L224-L225

Added lines #L224 - L225 were not covered by tests
end
Expand Down

0 comments on commit 8d05586

Please sign in to comment.