Skip to content

Commit

Permalink
check len
Browse files Browse the repository at this point in the history
  • Loading branch information
xxf098 committed Nov 21, 2022
1 parent f9d86be commit f265b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func TestFromCMD(subscription string, configPath *string) error {
}
}
// check url
if subscription != options.Subscription {
if len(subscription) > 0 && subscription != options.Subscription {
if _, err := url.Parse(subscription); err == nil {
options.Subscription = subscription
} else if _, err := os.Stat(subscription); err == nil {
Expand Down

0 comments on commit f265b31

Please sign in to comment.