Skip to content

Commit 99c657b

Browse files
committed
refactor: Fix typo
1 parent 4d9ad90 commit 99c657b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notifier/github/notify.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (g *NotifyService) Notify(body string) (exit int, err error) {
2828
if isPlan {
2929
if result.HasDestroy && cfg.WarnDestroy {
3030
// Notify destroy warning as a new comment before normal plan result
31-
if err = g.notifyDestoryWarning(body, result); err != nil {
31+
if err = g.notifyDestroyWarning(body, result); err != nil {
3232
return result.ExitCode, err
3333
}
3434
}
@@ -102,7 +102,7 @@ func (g *NotifyService) Notify(body string) (exit int, err error) {
102102
})
103103
}
104104

105-
func (g *NotifyService) notifyDestoryWarning(body string, result terraform.ParseResult) error {
105+
func (g *NotifyService) notifyDestroyWarning(body string, result terraform.ParseResult) error {
106106
cfg := g.client.Config
107107
destroyWarningTemplate := g.client.Config.DestroyWarningTemplate
108108
destroyWarningTemplate.SetValue(terraform.CommonTemplate{

0 commit comments

Comments
 (0)