added corresponding ends to functions and ifs
This commit is contained in:
parent
bc4c7aaefe
commit
9fa8b5946d
|
@ -4,7 +4,7 @@ local backgroundColor = colors.black
|
||||||
|
|
||||||
function playDisk()
|
function playDisk()
|
||||||
disk.playAudio()
|
disk.playAudio()
|
||||||
|
end
|
||||||
|
|
||||||
if disk.isPresent() and disk.hasAudio() then
|
if disk.isPresent() and disk.hasAudio() then
|
||||||
playDisk()
|
playDisk()
|
||||||
|
@ -12,4 +12,5 @@ elseif disk.isPresent() then
|
||||||
print "Not a music disc"
|
print "Not a music disc"
|
||||||
else
|
else
|
||||||
print "No disc"
|
print "No disc"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue