Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Refactor unnecessary conversion (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
beevee authored Jan 26, 2017
1 parent 3f0ad1c commit 0d855c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (sender *Sender) SendEvents(events notifier.EventsData, contact notifier.Co

c := exec.Command(scriptFile, args[1:]...)
var scriptOutput bytes.Buffer
c.Stdin = strings.NewReader(string(scriptJSON))
c.Stdin = bytes.NewReader(scriptJSON)
c.Stdout = &scriptOutput
log.Debugf("Executing script: %s", scriptFile)
err = c.Run()
Expand Down

0 comments on commit 0d855c0

Please sign in to comment.