Skip to content

Commit

Permalink
Preallocate widget var
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <[email protected]>
  • Loading branch information
KeisukeYamashita committed Nov 18, 2020
1 parent 754e50b commit 313dfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs/googlechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type googlechatPayload struct {

func newGooglechatPayload(falcopayload types.FalcoPayload, config *types.Configuration) googlechatPayload {
var messageText string
var widgets []widget
widgets := []widget{}

if config.Googlechat.MessageFormatTemplate != nil {
buf := &bytes.Buffer{}
Expand Down

0 comments on commit 313dfa6

Please sign in to comment.