Skip to content

Commit

Permalink
fix: fixes uncaught error
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
  • Loading branch information
jpower432 committed Jan 4, 2023
1 parent c19ecdc commit 1717a64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/client/commands/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ func (o *PushOptions) Run(ctx context.Context) error {

manager := defaultmanager.New(cache, o.Logger)
digest, err := manager.Push(ctx, o.Destination, client)
if err != nil {
return err
}

destination := o.Destination
if !strings.Contains(destination, "@") {
Expand All @@ -113,5 +116,5 @@ func (o *PushOptions) Run(ctx context.Context) error {
}
}

return err
return nil
}

0 comments on commit 1717a64

Please sign in to comment.