mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-23 13:52:29 +00:00
Format the file using go fmt
.
This commit is contained in:
parent
1110f82443
commit
ce186487f4
1 changed files with 2 additions and 2 deletions
|
@ -341,8 +341,8 @@ func handleHook(h *hook.Hook, rid string, headers, query, payload *map[string]in
|
|||
// check the command exists
|
||||
cmdPath, err := exec.LookPath(h.ExecuteCommand)
|
||||
if err != nil {
|
||||
// give a last chance, maybe is a relative path
|
||||
relativeToCwd := filepath.Join(h.CommandWorkingDirectory, h.ExecuteCommand)
|
||||
// give a last chance, maybe is a relative path
|
||||
relativeToCwd := filepath.Join(h.CommandWorkingDirectory, h.ExecuteCommand)
|
||||
// check the command exists
|
||||
cmdPath, err = exec.LookPath(relativeToCwd)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue