Skip to content

Commit 04f930e

Browse files
use empty(port) instead of !port to check for empty string
1 parent 23f2c2b commit 04f930e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/arduino.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ endfunction
565565

566566
function! arduino#GetSerialCmd() abort
567567
let port = arduino#GetPort()
568-
if !port
568+
if empty(port)
569569
echoerr "Error! No serial port found"
570570
return ''
571571
endif

0 commit comments

Comments
 (0)