Skip to content

Commit 5143078

Browse files
committed
No need to use await here
1 parent 83d5d59 commit 5143078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

preload.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const Serial = {
1313
return ports.filter(p => p.vendorId && p.productId)
1414
},
1515
connect: async (path) => {
16-
return await board.open(path)
16+
return board.open(path)
1717
},
1818
disconnect: async () => {
19-
return await board.close()
19+
return board.close()
2020
},
2121
run: async (code) => {
2222
return board.run(code)

0 commit comments

Comments
 (0)