Format the file using go fmt.

This commit is contained in:
Adnan Hajdarevic 2019-12-02 19:03:38 +01:00
parent 1110f82443
commit ce186487f4

View file

@ -341,8 +341,8 @@ func handleHook(h *hook.Hook, rid string, headers, query, payload *map[string]in
// check the command exists // check the command exists
cmdPath, err := exec.LookPath(h.ExecuteCommand) cmdPath, err := exec.LookPath(h.ExecuteCommand)
if err != nil { if err != nil {
// give a last chance, maybe is a relative path // give a last chance, maybe is a relative path
relativeToCwd := filepath.Join(h.CommandWorkingDirectory, h.ExecuteCommand) relativeToCwd := filepath.Join(h.CommandWorkingDirectory, h.ExecuteCommand)
// check the command exists // check the command exists
cmdPath, err = exec.LookPath(relativeToCwd) cmdPath, err = exec.LookPath(relativeToCwd)
} }