()
| 390 | } |
| 391 | |
| 392 | func shouldCheckForUpdate() bool { |
| 393 | if os.Getenv("ALGOLIA_NO_UPDATE_NOTIFIER") != "" { |
| 394 | return false |
| 395 | } |
| 396 | return !utils.IsCI() && utils.IsTerminal(os.Stdout) && utils.IsTerminal(os.Stderr) |
| 397 | } |
| 398 | |
| 399 | func checkForUpdate(cfg config.Config, currentVersion string) (*update.ReleaseInfo, error) { |
| 400 | if !shouldCheckForUpdate() { |
no test coverage detected