From e5801a1e0cef512294cd5d3dd76c5b6031d93f67 Mon Sep 17 00:00:00 2001 From: Dorian Wouters Date: Thu, 1 Jun 2017 17:39:37 -0400 Subject: [PATCH] Remove extraneous do..end block --- init.lua | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/init.lua b/init.lua index 6703452..a67680d 100644 --- a/init.lua +++ b/init.lua @@ -194,23 +194,22 @@ do thismod.table_exists = table_exists local auth_table_created - do -- Auth table existence check and setup - if not table_exists(tables.auths.name) then - -- Auth table doesn't exist, create it - local S = tables.auths.schema - conn:query('CREATE TABLE ' .. tables.auths.name .. ' (' .. - S.userid .. ' ' .. S.userid_type .. ' NOT NULL AUTO_INCREMENT,' .. - S.username .. ' ' .. S.username_type .. ' NOT NULL,' .. - S.password .. ' ' .. S.password_type .. ' NOT NULL,' .. - S.privs .. ' ' .. S.privs_type .. ' NOT NULL,' .. - S.lastlogin .. ' ' .. S.lastlogin_type .. ',' .. - 'PRIMARY KEY (' .. S.userid .. '),' .. - 'UNIQUE (' .. S.username .. ')' .. - ')') - minetest.log('action', modname .. " created table '" .. dbname .. "." .. tables.auths.name .. - "'") - auth_table_created = true - end + -- Auth table existence check and setup + if not table_exists(tables.auths.name) then + -- Auth table doesn't exist, create it + local S = tables.auths.schema + conn:query('CREATE TABLE ' .. tables.auths.name .. ' (' .. + S.userid .. ' ' .. S.userid_type .. ' NOT NULL AUTO_INCREMENT,' .. + S.username .. ' ' .. S.username_type .. ' NOT NULL,' .. + S.password .. ' ' .. S.password_type .. ' NOT NULL,' .. + S.privs .. ' ' .. S.privs_type .. ' NOT NULL,' .. + S.lastlogin .. ' ' .. S.lastlogin_type .. ',' .. + 'PRIMARY KEY (' .. S.userid .. '),' .. + 'UNIQUE (' .. S.username .. ')' .. + ')') + minetest.log('action', modname .. " created table '" .. dbname .. "." .. tables.auths.name .. + "'") + auth_table_created = true end local S = tables.auths.schema