Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Sep 11, 2023
1 parent 477a7bf commit 20566d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oras/internal/option/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Remote struct {
headerFlags []string
headers http.Header
warned map[string]*sync.Map
plainHTTP func() (plainHTTP bool, fromFlag bool)
plainHTTP func() (plainHTTP bool, enforced bool)
}

// EnableDistributionSpecFlag set distribution specification flag as applicable.
Expand Down Expand Up @@ -309,7 +309,7 @@ func (opts *Remote) NewRepository(reference string, common Common, logger logrus

// isPlainHttp returns the plain http flag for a given registry.
func (opts *Remote) isPlainHttp(registry string) bool {
if plainHTTP, specified := opts.plainHTTP(); specified {
if plainHTTP, enforced := opts.plainHTTP(); enforced {
return plainHTTP
}

Expand Down

0 comments on commit 20566d1

Please sign in to comment.