Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Update dataproxy/service.go
Browse files Browse the repository at this point in the history
Co-authored-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor and EngHabu authored May 4, 2023
1 parent b8a6b51 commit 81e7deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataproxy/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func createStorageLocation(ctx context.Context, store *storage.DataStore,
}

func (s Service) validateResolveArtifactRequest(req *service.GetDataRequest) error {
if req.GetFlyteUrl() == "" {
if len(req.GetFlyteUrl()) == 0 {
return fmt.Errorf("source is required. Provided empty string")
}
if !strings.HasPrefix(req.GetFlyteUrl(), "flyte://") {
Expand Down

0 comments on commit 81e7deb

Please sign in to comment.