Skip to content

Commit 3376ef2

Browse files
committed
refactor: minor alignments with original source code
1 parent 34a46e4 commit 3376ef2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

internal/pkg/platform/deploy.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ func Deploy(ctx context.Context, clients *shared.ClientFactory, showTriggers boo
8888
}
8989

9090
// deploy the app
91-
err = deployApp(ctx, clients, app, manifest, authSession)
92-
if err != nil {
91+
if err := deployApp(ctx, clients, app, manifest, authSession); err != nil {
9392
return slackerror.Wrap(err, slackerror.ErrAppDeploy)
9493
}
9594

@@ -130,6 +129,8 @@ func deployApp(ctx context.Context, clients *shared.ClientFactory, app types.App
130129
var result packageResult
131130

132131
// TODO: Packaging the app can happen in parallel with getting the presigned S3 post params
132+
133+
// Package the app for deployment
133134
packageSpinner := style.NewSpinner(clients.IO.WriteErr())
134135
defer func() {
135136
packageSpinner.Stop()
@@ -156,6 +157,7 @@ func deployApp(ctx context.Context, clients *shared.ClientFactory, app types.App
156157
})
157158
packageSpinner.Update(packageSuccessText, "").Stop()
158159

160+
// Deploy the app to the Slack Platform
159161
deploySpinner := style.NewSpinner(clients.IO.WriteErr())
160162
defer func() {
161163
deploySpinner.Stop()

0 commit comments

Comments
 (0)