From 81072c042087b7dd7b214b44a7e559f09e0280f6 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 11 Oct 2015 11:54:15 +0200 Subject: [PATCH] menubar.icon_theme: minor code style fixes --- lib/menubar/icon_theme.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/menubar/icon_theme.lua b/lib/menubar/icon_theme.lua index 39ca9d1f8..1ea83d42a 100644 --- a/lib/menubar/icon_theme.lua +++ b/lib/menubar/icon_theme.lua @@ -196,8 +196,7 @@ local lookup_icon = function(self, icon_name, icon_size) return nil end -local find_icon_path_helper -find_icon_path_helper = function(self, icon_name, icon_size) +local find_icon_path_helper = function(self, icon_name, icon_size) local filename = lookup_icon(self, icon_name, icon_size) if filename then return filename @@ -253,8 +252,8 @@ icon_theme.find_icon_path = function(self, icon_name, icon_size) return lookup_fallback_icon(self, icon_name) end -icon_theme.mt.__call = function(cls, icon_theme_name, base_directories) - return icon_theme.new(cls, icon_theme_name, base_directories) +icon_theme.mt.__call = function(...) + return icon_theme.new(...) end return setmetatable(icon_theme, icon_theme.mt)