File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -229,14 +229,15 @@ func GetURL(path string) string {
229
229
}
230
230
231
231
func GetAuthURL (path string ) string {
232
- if viper .GetString (commonParams .BaseAuthURIKey ) != "" {
233
- cleanURL := strings .TrimSpace (viper .GetString (commonParams .BaseAuthURIKey ))
234
- cleanURL = strings .Trim (cleanURL , "/" )
235
- PrintIfVerbose ("Auth URL is: " + cleanURL + path )
236
- return fmt .Sprintf ("%s/%s" , cleanURL , path )
237
- }
238
- PrintIfVerbose ("Auth URL is: " + path )
239
- return GetURL (path )
232
+ var authURL string
233
+ cleanURL := strings .TrimSpace (viper .GetString (commonParams .BaseAuthURIKey ))
234
+ if cleanURL != "" {
235
+ authURL = fmt .Sprintf ("%s/%s" , strings .Trim (cleanURL , "/" ), path )
236
+ } else {
237
+ authURL = GetURL (path )
238
+ }
239
+ PrintIfVerbose ("Auth URL is: " + authURL )
240
+ return authURL
240
241
}
241
242
242
243
func SendHTTPRequestWithQueryParams (method , path string , params map [string ]string ,
You can’t perform that action at this time.
0 commit comments