diff --git a/internal/cmd/miniooni/main.go b/internal/cmd/miniooni/main.go index 75b4e75..f65fc84 100644 --- a/internal/cmd/miniooni/main.go +++ b/internal/cmd/miniooni/main.go @@ -6,16 +6,6 @@ package main // Main function // -import ( - "fmt" - "os" -) - func main() { - defer func() { - if s := recover(); s != nil { - fmt.Fprintf(os.Stderr, "FATAL: %s\n", s) - } - }() Main() } diff --git a/internal/registry/telegram.go b/internal/registry/telegram.go index 6881d21..3c20980 100644 --- a/internal/registry/telegram.go +++ b/internal/registry/telegram.go @@ -16,7 +16,7 @@ func init() { config.(telegram.Config), ) }, - config: &telegram.Config{}, + config: telegram.Config{}, interruptible: false, inputPolicy: model.InputNone, } diff --git a/internal/registry/webconnectivity.go b/internal/registry/webconnectivity.go index dc7cefe..69e27aa 100644 --- a/internal/registry/webconnectivity.go +++ b/internal/registry/webconnectivity.go @@ -16,7 +16,7 @@ func init() { config.(webconnectivity.Config), ) }, - config: &webconnectivity.Config{}, + config: webconnectivity.Config{}, interruptible: false, inputPolicy: model.InputOrQueryBackend, }