Remove unnecessary blank lines
This commit is contained in:
parent
bbf39e70fd
commit
a83f6c7619
@ -112,12 +112,10 @@ func (service *Service) ValidateAndSetDefaults() {
|
|||||||
if len(service.Conditions) == 0 {
|
if len(service.Conditions) == 0 {
|
||||||
panic(ErrServiceWithNoCondition)
|
panic(ErrServiceWithNoCondition)
|
||||||
}
|
}
|
||||||
|
|
||||||
if service.DNS != nil {
|
if service.DNS != nil {
|
||||||
service.DNS.validateAndSetDefault()
|
service.DNS.validateAndSetDefault()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure that the request can be created
|
// Make sure that the request can be created
|
||||||
_, err := http.NewRequest(service.Method, service.URL, bytes.NewBuffer([]byte(service.Body)))
|
_, err := http.NewRequest(service.Method, service.URL, bytes.NewBuffer([]byte(service.Body)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user