Skip to content

Commit

Permalink
Skip empty records
Browse files Browse the repository at this point in the history
  • Loading branch information
Kashkovsky committed Apr 15, 2022
1 parent 72203af commit bfa601a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func (w *Watcher) update() error {
func (w *Watcher) doWatch(f func(TestResult)) error {
records := strings.Split(w.rawUrls, "\n")
for _, addr := range records {
if addr == "" {
continue
}
u, err := url.Parse(addr)
if err != nil {
log.Default().Printf("Invalid url: %v, skipping...", addr)
Expand Down

0 comments on commit bfa601a

Please sign in to comment.