stylesheets/flint/functions/lib/_next-index.scss in flint-gs-1.6.0 vs stylesheets/flint/functions/lib/_next-index.scss in flint-gs-1.6.1
- old
+ new
@@ -1,15 +1,15 @@
-// Returns next indexed key based on passed index
-// -------------------------------------------------------------------------------
-// @param $index [number] : index
-// -------------------------------------------------------------------------------
-// @return [string] | null
-
-@function next-index($index) {
- @if $index != (length(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 next-index($index) {
+ @if $index != (length(map-fetch($flint, "config")) - 1) {
+ @each $key in nth(map-get($flint, "config"), $index + 1) {
+ @return $key;
+ }
+ } @else {
+ @return null;
+ }
}
\ No newline at end of file