Skip to content

Commit 1a2859f

Browse files
authored
Merge pull request #40 from MotherOfUnicorns/master
use empty(port) instead of !port to check for empty string
2 parents 23f2c2b + 04f930e commit 1a2859f

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)