Fix Luacheck warnings (#1798)

This fixes warnings that were introduced with f22ef5014d /
https://github.com/awesomeWM/awesome/pull/1477.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-05-26 15:33:56 +02:00 committed by Daniel Hahler
parent 27c3b96a08
commit e7a1745b86
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ function xresources.get_dpi(s)
if not xresources.dpi then if not xresources.dpi then
if root then if root then
local mm_to_inch = 25.4 local mm_to_inch = 25.4
_, h = root.size() local _, h = root.size()
_, hmm = root.size_mm() local _, hmm = root.size_mm()
if hmm ~= 0 then if hmm ~= 0 then
xresources.dpi = round(h*mm_to_inch/hmm) xresources.dpi = round(h*mm_to_inch/hmm)
end end