diff --git a/util/cmp/stream.go b/util/cmp/stream.go index 429bba446d0a77..e9c0627e3333f9 100644 --- a/util/cmp/stream.go +++ b/util/cmp/stream.go @@ -113,9 +113,6 @@ func GetCompressedRepoAndMetadata(repoPath string, appPath string, env []string, if err != nil { return nil, nil, fmt.Errorf("error compressing repo files: %w", err) } - if filesWritten == 0 { - return nil, nil, fmt.Errorf("no files to send") - } if opt != nil && opt.tarDoneChan != nil { opt.tarDoneChan <- true close(opt.tarDoneChan)