Skip to content

Commit dc3ea96

Browse files
authored
nixcache: only print warning if URI isn't empty (#1974)
1 parent 653e884 commit dc3ea96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/devbox/providers/nixcache/nixcache.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ func (p *Provider) URI(ctx context.Context) (string, error) {
205205
if err != nil {
206206
return "", redact.Errorf("nixcache: get uri: %w", redact.Safe(err))
207207
}
208-
checkIfUserCanAddSubstituter(ctx)
208+
if uri != "" {
209+
checkIfUserCanAddSubstituter(ctx)
210+
}
209211
return uri, nil
210212
}
211213

0 commit comments

Comments
 (0)