From 99db3a82b2d7eb437c8cd508a7058411f58e6dc4 Mon Sep 17 00:00:00 2001 From: Michael Leuchtenburg Date: Sun, 25 Jun 2023 11:13:01 -0400 Subject: [PATCH] Remove unnecessary assignment --- lib/menubar/utils.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 4fe4649f1..8a7826b0f 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -384,11 +384,10 @@ function utils.parse_dir(dir_path, callback) local result = {} local dir = gio.File.new_for_path(dir_path) parser(dir, result) - for i, entry in ipairs(result) do + for _, entry in ipairs(result) do local desktop_file = gio.File.new_for_path(entry.file) local relative_path = dir:get_relative_path(desktop_file) entry.desktop_file_id = string.gsub(relative_path, "/", "-") - result[i] = entry end callback(result) end