mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
Fix lint
This commit is contained in:
parent
ad4e3a89e0
commit
445c04baf7
@ -208,7 +208,9 @@ func (s *Suite) TestSerdeAddressStrignSlice(c *check.C) {
|
|||||||
})
|
})
|
||||||
serialized, err := input.Value()
|
serialized, err := input.Value()
|
||||||
c.Assert(err, check.IsNil)
|
c.Assert(err, check.IsNil)
|
||||||
c.Assert(serialized.(string), check.Equals, "192.0.2.1,2001:db8::1")
|
if serial, ok := serialized.(string); ok {
|
||||||
|
c.Assert(serial, check.Equals, "192.0.2.1,2001:db8::1")
|
||||||
|
}
|
||||||
|
|
||||||
var deserialized MachineAddresses
|
var deserialized MachineAddresses
|
||||||
err = deserialized.Scan(serialized)
|
err = deserialized.Scan(serialized)
|
||||||
|
Loading…
Reference in New Issue
Block a user