From 99c657b8dc73f8c1105d1de7bc416038913f868a Mon Sep 17 00:00:00 2001 From: johnmanjiro13 <28798279+johnmanjiro13@users.noreply.github.com> Date: Tue, 31 May 2022 11:46:32 +0900 Subject: [PATCH] refactor: Fix typo --- notifier/github/notify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifier/github/notify.go b/notifier/github/notify.go index 212d2b3..b9a54a3 100644 --- a/notifier/github/notify.go +++ b/notifier/github/notify.go @@ -28,7 +28,7 @@ func (g *NotifyService) Notify(body string) (exit int, err error) { if isPlan { if result.HasDestroy && cfg.WarnDestroy { // Notify destroy warning as a new comment before normal plan result - if err = g.notifyDestoryWarning(body, result); err != nil { + if err = g.notifyDestroyWarning(body, result); err != nil { return result.ExitCode, err } } @@ -102,7 +102,7 @@ func (g *NotifyService) Notify(body string) (exit int, err error) { }) } -func (g *NotifyService) notifyDestoryWarning(body string, result terraform.ParseResult) error { +func (g *NotifyService) notifyDestroyWarning(body string, result terraform.ParseResult) error { cfg := g.client.Config destroyWarningTemplate := g.client.Config.DestroyWarningTemplate destroyWarningTemplate.SetValue(terraform.CommonTemplate{