stylesheets/flint/functions/lib/_next-index.scss in flint-gs-1.7.0 vs stylesheets/flint/functions/lib/_next-index.scss in flint-gs-1.7.1

- old
+ new

@@ -1,15 +1,15 @@ -// Returns next indexed key based on passed index -// ------------------------------------------------------------------------------- -// @param $index [number] : index -// ------------------------------------------------------------------------------- -// @return [string] | null - -@function flint-next-index($index) { - @if $index != (length(flint-map-fetch($flint, "config")) - 1) { - @each $key in nth(map-get($flint, "config"), $index + 1) { - @return $key; - } - } @else { - @return null; - } -} +// Returns next indexed key based on passed index +// ------------------------------------------------------------------------------- +// @param $index [number] : index +// ------------------------------------------------------------------------------- +// @return [string] | null + +@function flint-next-index($index) { + @if $index != (length(flint-map-fetch($flint, "config")) - 1) { + @each $key in nth(map-get($flint, "config"), $index + 1) { + @return $key; + } + } @else { + @return null; + } +}