Skip to content

Commit

Permalink
unrelated luacheck 'fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Feb 25, 2024
1 parent 3b7db12 commit a364db4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compat/ehlphabet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local skip = {}
for _, n in ipairs(exceptions) do skip[n] = true end

local function ehlphabet_number_sticker(item_name)
if not item_name or not 'string' == type(item_name) then return end
if not item_name or 'string' ~= type(item_name) then return end

return item_name:match('^ehlphabet:([0-9]+)'),
item_name:find('_sticker$') and true
Expand Down
4 changes: 2 additions & 2 deletions compat/letters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if not minetest.get_modpath('letters') then return end
-- for inspection tool
local S = replacer.S
local function add_recipe_u(item_name, _, recipes)
if not item_name or not 'string' == type(item_name) then return end
if not item_name or 'string' ~= type(item_name) then return end

local input, letter = item_name:match('^(.+)_letter_(.)u$')
if not input then return end
Expand All @@ -21,7 +21,7 @@ replacer.register_craft_method('letters:upper', 'letters:letter_cutter_upper', a


local function add_recipe_l(item_name, _, recipes)
if not item_name or not 'string' == type(item_name) then return end
if not item_name or 'string' ~= type(item_name) then return end

local input, letter = item_name:match('^(.+)_letter_(.)l$')
if not input then return end
Expand Down
2 changes: 1 addition & 1 deletion compat/wine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ in_out['wine:glass_coffee_liquor'] = 'farming:coffee_beans'
in_out['wine:glass_champagne'] = 'wine:glass_champagne_raw'

local function add_recipe(item_name, _, recipes)
if not 'string' == type(item_name)
if 'string' ~= type(item_name)
or not item_name:find('^wine:glass_') then return end

-- this one is an exception
Expand Down

0 comments on commit a364db4

Please sign in to comment.