Skip to content

Commit

Permalink
fix: set before normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT committed Dec 6, 2023
1 parent 6e4bbe1 commit c6fd222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/frigate/frigate.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func SendTextEvent(FrigateEvent EventStruct, bot *tgbotapi.BotAPI) {
func NotifyEvents(bot *tgbotapi.BotAPI, FrigateEventsURL string) {
conf := config.New()
for true {

Check failure on line 307 in internal/frigate/frigate.go

View workflow job for this annotation

GitHub Actions / Lint check

S1006: should use for {} instead of for true {} (gosimple)
FrigateEvents := GetEvents(FrigateEventsURL, bot, true)
FrigateEvents := GetEvents(FrigateEventsURL, bot, false)
ParseEvents(FrigateEvents, bot, true)
time.Sleep(time.Duration(conf.WatchDogSleepTime) * time.Second)
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func main() {
go frigate.NotifyEvents(bot, FrigateEventsURL)
// Starting loop for getting events from Frigate
for true {

Check failure on line 88 in main.go

View workflow job for this annotation

GitHub Actions / Lint check

S1006: should use for {} instead of for true {} (gosimple)
FrigateEvents := frigate.GetEvents(FrigateEventsURL, bot, false)
FrigateEvents := frigate.GetEvents(FrigateEventsURL, bot, true)
frigate.ParseEvents(FrigateEvents, bot, false)
time.Sleep(time.Duration(conf.SleepTime) * time.Second)
log.Debug.Println("Sleeping for " + strconv.Itoa(conf.SleepTime) + " seconds.")
Expand Down

0 comments on commit c6fd222

Please sign in to comment.