From 200e2f0328b6cfc6965d5399d7750df19eec6144 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Mon, 7 Aug 2017 14:14:47 +0100 Subject: completed refactoring from tags to commands --- commits.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'commits.go') diff --git a/commits.go b/commits.go index 4cc67a3..e85c976 100644 --- a/commits.go +++ b/commits.go @@ -176,7 +176,12 @@ func walkCommits(msg spoolMsg, w *worker) error { // 2) then for each command in the message for _, c := range cmdMsg.Commands { + if c.Cmd == "" { + log.Printf("[worker: %s] empty command\n", w.Name) + continue + } // a) check that the command is among those accepted by the worker + debug.log("[worker: %s] validating command: %s\n", w.Name, c.Cmd) cmdCfg, goodCmd := findCmdConfig(c.Cmd, w) debug.log("[worker: %s] goodCmd: %s\n", w.Name, goodCmd) -- cgit v1.2.3