Remove hasGuard option
This commit is contained in:
		
							parent
							
								
									73fd0063eb
								
							
						
					
					
						commit
						e0a5bd86d7
					
				| @ -2,7 +2,6 @@ package cif | ||||
| 
 | ||||
| import ( | ||||
| 	"strconv" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	"git.fjla.uk/owlboard/go-types/pkg/database" | ||||
| 	"git.fjla.uk/owlboard/go-types/pkg/upstreamApi" | ||||
| @ -95,7 +94,6 @@ func generateServiceDetail( | ||||
| 		Catering:   hasCatering(cateringCode), | ||||
| 		Sleeper:    hasSleeper(sleepers), | ||||
| 		Vstp:       vstp, | ||||
| 		Guard:      hasGuard(operatingCharacteristics), | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| @ -129,10 +127,3 @@ func hasSleeper(input *string) bool { | ||||
| 	} | ||||
| 	return *input != "" | ||||
| } | ||||
| 
 | ||||
| // Ascertains whether the service requires a guard | ||||
| // This option is not accurate and will likely be removed in the future | ||||
| func hasGuard(opChars *string) bool { | ||||
| 	str := strings.ToLower(*opChars) | ||||
| 	return strings.Contains(str, "g") | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user