Skip to content

Commit 27dbd85

Browse files
Simplify EnsureResolved call pattern in ToOAuthArgument
1 parent ecd4ae5 commit 27dbd85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/auth/arguments.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ func (a AuthArguments) ToOAuthArgument() (u2m.OAuthArgument, error) {
5151

5252
if a.DiscoveryURL != "" {
5353
cfg.DiscoveryURL = a.DiscoveryURL
54-
} else if err := cfg.EnsureResolved(); err == nil {
54+
} else {
5555
// EnsureResolved populates cfg.DiscoveryURL from .well-known.
56+
_ = cfg.EnsureResolved()
5657
}
5758

5859
host := cfg.CanonicalHostName()

0 commit comments

Comments
 (0)