Fix monitoring PF CI lint issues
This commit is contained in:
@@ -29,7 +29,11 @@ func main() {
|
||||
slog.Error("db_open_failed", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer app.Close()
|
||||
defer func() {
|
||||
if err := app.Close(); err != nil {
|
||||
slog.Warn("app_close_failed", "error", err)
|
||||
}
|
||||
}()
|
||||
if !app.TG.Enabled() {
|
||||
slog.Error("telegram_token_missing")
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user