(s string)
| 529 | } |
| 530 | |
| 531 | func isNothingNew(s string) bool { |
| 532 | normalized := strings.ToUpper(strings.TrimSpace(s)) |
| 533 | normalized = strings.TrimRight(normalized, ".!,;:") |
| 534 | normalized = strings.TrimSpace(normalized) |
| 535 | switch normalized { |
| 536 | case "NOTHING_NEW", "NOTHING NEW", "NOTHING-NEW", "N/A", "NONE", "NA": |
| 537 | return true |
| 538 | } |
| 539 | return false |
| 540 | } |
| 541 | |
| 542 | //nolint:unused // used by memory_worker_test via parseMemoryResponse. |
| 543 | func findSectionIndex(upperResponse string, keyword string) int { |
no outgoing calls