Validate validates fields of branch
()
| 26 | |
| 27 | // Validate validates fields of branch |
| 28 | func (b *URL) Validate() error { |
| 29 | if b.InsteadOf == "" { |
| 30 | return errURLEmptyInsteadOf |
| 31 | } |
| 32 | |
| 33 | return nil |
| 34 | } |
| 35 | |
| 36 | const ( |
| 37 | insteadOfKey = "insteadOf" |
no outgoing calls