From 939453cabea77bfdd8c0b1956527e82608340ca7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 18 Dec 2016 18:59:58 +0100 Subject: [PATCH] Fix luacheck warnings in the logo-tests Ever since these files were added, these problems existed. I have no idea what alt_fg is supposed to mean, but since a value of nil is apparently ok, I just pass in nil directly. Signed-off-by: Uli Schlachter --- tests/examples/wibox/logo/logo.lua | 4 ---- tests/examples/wibox/logo/logo_and_name.lua | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/examples/wibox/logo/logo.lua b/tests/examples/wibox/logo/logo.lua index 7d9009fa..734ad2b8 100644 --- a/tests/examples/wibox/logo/logo.lua +++ b/tests/examples/wibox/logo/logo.lua @@ -1,10 +1,6 @@ local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE -local beautiful = require( "beautiful" ) --DOC_HIDE local assets = require( "xresources.assets" ) --DOC_HIDE -local color = require( "gears.color" ) --DOC_HIDE - -local size = 128 --DOC_HIDE parent:add( --DOC_HIDE diff --git a/tests/examples/wibox/logo/logo_and_name.lua b/tests/examples/wibox/logo/logo_and_name.lua index 6530e4e6..126d7dbe 100644 --- a/tests/examples/wibox/logo/logo_and_name.lua +++ b/tests/examples/wibox/logo/logo_and_name.lua @@ -1,10 +1,6 @@ local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE -local beautiful = require( "beautiful" ) --DOC_HIDE local assets = require( "xresources.assets" ) --DOC_HIDE -local color = require( "gears.color" ) --DOC_HIDE - -local size = 128 --DOC_HIDE parent:add( --DOC_HIDE @@ -13,7 +9,7 @@ wibox.widget { draw = function(_, _, cr) assets.gen_logo(cr, 128, 128, nil, "#535d6c") cr:translate(128 + 128/16, 0) - assets.gen_awesome_name(cr, 158, nil, "#535d6c", alt_fg) + assets.gen_awesome_name(cr, 158, nil, "#535d6c", nil) end, widget = wibox.widget.base.make_widget }