mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-27 05:08:11 +08:00
address code review comment
This commit is contained in:
@@ -438,7 +438,7 @@ func RunCmds(commands []string, printerr bool) error {
|
||||
var err error
|
||||
for _, command := range commands {
|
||||
//prevent panic
|
||||
if command == " " {
|
||||
if len(strings.Trim(command, " ")) == 0 {
|
||||
continue
|
||||
}
|
||||
args := strings.Fields(command)
|
||||
|
Reference in New Issue
Block a user