checkmgr/checkmgr.go
func (cm *CheckManager) RefreshTrap() error {
	if cm.trapURL == "" {
		return nil
	}

	if time.Since(cm.trapLastUpdate) >= cm.trapMaxURLAge {
		return cm.ResetTrap()
	}

	return nil
}
func (cm *CheckManager) RefreshTrap() error {
	if cm.trapURL == "" {
		return nil
	}

	if time.Since(cm.trapLastUpdate) >= cm.trapMaxURLAge {
		return cm.ResetTrap()
	}

	return nil
}
func ( cm * CheckManager ) RefreshTrap ( ) error { if cm . trapURL == " " { return nil } if time . Since ( cm . trapLastUpdate ) >= cm . trapMaxURLAge { return cm . ResetTrap ( ) } return nil }
// RefreshTrap check when the last time the URL was reset, reset if needed
RefreshTrap check when the last time the URL was reset reset if needed