Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 15:03:43 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commita378a4eaaf63e86c699b66c1f7dd10b185b831cb (patch)
treedd817dea5f376debe0b94ae8db3302e8256cefc6
parent01edd94fb94527396bb613e588115c9b9e264801 (diff)
appease rubocop Naming/VariableName
-rwxr-xr-xscript/sort-gui12
1 files changed, 6 insertions, 6 deletions
diff --git a/script/sort-gui b/script/sort-gui
index 534358d4..8203da4f 100755
--- a/script/sort-gui
+++ b/script/sort-gui
@@ -41,18 +41,18 @@ end
# For comparison we are using 'windows' of 5 elements, where the first element
# of a window, is the last element of the previous window, so that new elements
# can be compared with the previous window
-minIndex = 0
-maxIndex = 4
+min_index = 0
+max_index = 4
# trend_groups is an array of pairs (abstracted as an array of size 2),
# containing the min and max GUI index for the current iteration
trend_groups = []
last_idx = encoded.size - 1
-while minIndex < last_idx
- trend_groups.push([minIndex, [maxIndex, last_idx].min])
- minIndex += 4
- maxIndex += 4
+while min_index < last_idx
+ trend_groups.push([min_index, [max_index, last_idx].min])
+ min_index += 4
+ max_index += 4
end
# For each pair of indexes we fetch the GUI window and create the Google Trend URL