test remove monitor nil check
This commit is contained in:
8
main.lua
8
main.lua
@@ -64,10 +64,10 @@ function identifyMonitor(monitorType)
|
||||
-- Find all available monitors
|
||||
local availableMonitors = peripheral.find("monitor")
|
||||
|
||||
if not availableMonitors or #availableMonitors == 0 then
|
||||
print("No monitors found on the network.")
|
||||
return nil
|
||||
end
|
||||
--if not availableMonitors or #availableMonitors == 0 then
|
||||
-- print("No monitors found on the network.")
|
||||
-- return nil
|
||||
--end
|
||||
|
||||
print("Available monitors:")
|
||||
for i, name in ipairs(availableMonitors) do
|
||||
|
||||
Reference in New Issue
Block a user