Skip to content

Commit 83171c7

Browse files
committed
Don't shadow the light var
1 parent c162f4e commit 83171c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ConvertStreetLight.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ exports.getComponent = ->
2727
return
2828
for light, target in data
2929
for color, idx in light
30-
light = target + 1
30+
port = target + 1
3131
result = {}
32-
result["street#{light}"] = new noflo.IP 'data', color,
32+
result["street#{port}"] = new noflo.IP 'data', color,
3333
index: idx
3434
output.send result
3535
output.done()

0 commit comments

Comments
 (0)