Skip to content

Commit 110b3c4

Browse files
committed
Simpilfy superfluous type checks
1 parent 9622278 commit 110b3c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesecons_detector/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ local node_detector_digiline = {
223223

224224
if type(msg) == "table" then
225225
if msg.distance or msg.scanname then
226-
if msg.distance and type(msg.distance) == "string" then
226+
if type(msg.distance) == "string" then
227227
meta:set_string("distance", msg.distance)
228228
end
229-
if msg.scanname and type(msg.scanname) == "string" then
229+
if type(msg.scanname) == "string" then
230230
meta:set_string("scanname", msg.scanname)
231231
end
232232
node_detector_make_formspec(pos)

0 commit comments

Comments
 (0)