Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gsora committed Jan 23, 2024
1 parent 597b8e6 commit 01e83da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkg/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func loadDefinition(ctx context.Context, conf Config) (cluster.Definition, error
parsedURL, err := url.ParseRequestURI(conf.DefFile)

var def cluster.Definition
if err == nil {
if err == nil && parsedURL.Host != "" {
if strings.HasPrefix(parsedURL.Scheme, "https") {
log.Warn(ctx, "Definition file URL does not use https protocol", nil, z.Str("addr", conf.DefFile))
}

Check warning on line 44 in dkg/disk.go

View check run for this annotation

Codecov / codecov/patch

dkg/disk.go#L42-L44

Added lines #L42 - L44 were not covered by tests
Expand Down

0 comments on commit 01e83da

Please sign in to comment.