Skip to content

Commit 2327e70

Browse files
committed
fix syntax error
1 parent 14a4afa commit 2327e70

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

backend/controllers/github.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ func (d DiggerController) GithubAppWebHook(c *gin.Context) {
7979
slog.Error("Failed to handle installation upsert event", "error", err)
8080
}
8181
}
82-
} else if *event.Action == "created" || *event.Action == "unsuspended" || *event.Action == "new_permissions_accepted" {
83-
if err := handleInstallationUpsertEvent(c.Request.Context(), gh, event, appId64); err != nil {
84-
slog.Error("Failed to handle installation upsert event", "error", err)
85-
c.String(http.StatusAccepted, "Failed to handle webhook event.")
86-
return
87-
}
88-
}
82+
}(c.Request.Context())
8983
case *github.InstallationRepositoriesEvent:
9084
slog.Info("Processing InstallationRepositoriesEvent",
9185
"action", event.GetAction(),

0 commit comments

Comments
 (0)