mirror of https://github.com/hashicorp/consul
[ci] fix: go-fmt fails on master branch (#6906)
parent
1f3f9a7847
commit
34649b8820
|
@ -322,7 +322,6 @@ func (r *DeregisterRequest) RequestDatacenter() string {
|
||||||
return r.Datacenter
|
return r.Datacenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r *DeregisterRequest) UnmarshalJSON(data []byte) error {
|
func (r *DeregisterRequest) UnmarshalJSON(data []byte) error {
|
||||||
type Alias DeregisterRequest
|
type Alias DeregisterRequest
|
||||||
aux := &struct {
|
aux := &struct {
|
||||||
|
@ -331,14 +330,13 @@ func (r *DeregisterRequest) UnmarshalJSON(data []byte) error {
|
||||||
}{
|
}{
|
||||||
Alias: (*Alias)(r),
|
Alias: (*Alias)(r),
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := lib.UnmarshalJSON(data, &aux); err != nil {
|
if err := lib.UnmarshalJSON(data, &aux); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// QuerySource is used to pass along information about the source node
|
// QuerySource is used to pass along information about the source node
|
||||||
// in queries so that we can adjust the response based on its network
|
// in queries so that we can adjust the response based on its network
|
||||||
// coordinates.
|
// coordinates.
|
||||||
|
|
Loading…
Reference in New Issue