Skip to content

Commit

Permalink
Fix --token flag
Browse files Browse the repository at this point in the history
Parse arguments correctly to fix --token flag.
  • Loading branch information
alexmingoia committed Jan 15, 2024
1 parent 0ac86f4 commit dea6af2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions providers/rootly/rootly_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ func (p *RootlyProvider) Init(args []string) error {
if apiUrl := os.Getenv("ROOTLY_API_URL"); apiUrl != "" {
p.apiUrl = os.Getenv("ROOTLY_API_URL")
}
if args[0] != "" {
p.apiUrl = args[0]
}
if p.apiUrl == "" {
p.apiUrl = "https://api.rootly.com"
}
Expand Down

0 comments on commit dea6af2

Please sign in to comment.