mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:18:31 +02:00
refactor: minor styling fixes; deadcode cleanup and correct log level
This commit is contained in:
@@ -2,6 +2,7 @@ package notif
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -49,7 +50,7 @@ func (base *ProviderBase) Validate() error {
|
||||
}
|
||||
u, err := url.Parse(base.URL)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("invalid url: %w", err)
|
||||
}
|
||||
base.URL = u.String()
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user