8000 Removed leftover 'file' and renamed variable to 'f'. · arduino/micropython.js@2c26a58 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c26a58

Browse files
committed
Removed leftover 'file' and renamed variable to 'f'.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 63a1402 commit 2c26a58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

micropython.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,13 @@ class MicroPythonBoard {
241241
let command = `import uos\n`
242242
command += `try:\n`
243243
command += ` l=[]\n`
244-
command += ` for file in uos.ilistdir("${folderPath}"):\n`
245-
command += ` l.append(list(file))\n`
244+
command += ` for f in uos.ilistdir("${folderPath}"):\n`
245+
command += ` l.append(list(f))\n`
246246
command += ` print(l)\n`
247247
command += `except OSError:\n`
248248
command += ` print([])\n`
249249
command += `del l\n`
250+
command += `del f\n`
250251
await this.enter_raw_repl()
251252
let output = await this.exec_raw(command)
252253
await this.exit_raw_repl()

0 commit comments

Comments
 (0)
0