mirror of
https://github.com/openfaas/faas.git
synced 2025-06-25 08:13:25 +00:00
Apply gofmt
Previous PR from Simon or Ken broke build due to missing gofmt in the PR. This PR applies it to resolve the build issue. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
@ -149,7 +149,7 @@ func (s ExternalServiceQuery) SetReplicas(serviceName string, count uint64) erro
|
||||
|
||||
// extractLabelValue will parse the provided raw label value and if it fails
|
||||
// it will return the provided fallback value and log an message
|
||||
func extractLabelValue(rawLabelValue string, fallback uint64 ) uint64{
|
||||
func extractLabelValue(rawLabelValue string, fallback uint64) uint64 {
|
||||
if len(rawLabelValue) <= 0 {
|
||||
return fallback
|
||||
}
|
||||
@ -162,4 +162,4 @@ func extractLabelValue(rawLabelValue string, fallback uint64 ) uint64{
|
||||
}
|
||||
|
||||
return uint64(value)
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ func TestLabelValueWasInValid(t *testing.T) {
|
||||
t.Log("Expected extractedValue to equal the fallbackValue")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user