Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Simplify artifact preload check
Browse files Browse the repository at this point in the history
  • Loading branch information
briancain committed May 18, 2021
1 parent c082233 commit 67dfd06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/core/app_status_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ func (a *App) StatusReport(
) (*pb.StatusReport, *sdk.StatusReport, error) {
// Query the artifact
var artifact *pb.PushedArtifact
if deployTarget != nil && deployTarget.Preload != nil &&
deployTarget.Preload.Artifact != nil {
if deployTarget != nil && deployTarget.Preload != nil {
artifact = deployTarget.Preload.Artifact
}
if artifact == nil && deployTarget != nil {
Expand Down

0 comments on commit 67dfd06

Please sign in to comment.