style: format code across all files
This commit is contained in:
@@ -15,4 +15,3 @@ func MsgpackMarshal(v interface{}) ([]byte, error) {
|
|||||||
func MsgpackUnmarshal(data []byte, v interface{}) error {
|
func MsgpackUnmarshal(data []byte, v interface{}) error {
|
||||||
return msgpack.Unmarshal(data, v)
|
return msgpack.Unmarshal(data, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,4 +94,3 @@ func (ai *AutoInterface) Stop() error {
|
|||||||
ai.Online = false
|
ai.Online = false
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,3 @@ func escapeKISS(data []byte) []byte {
|
|||||||
}
|
}
|
||||||
return escaped
|
return escaped
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,3 @@ func (li *LoRaInterface) Stop() error {
|
|||||||
func (li *LoRaInterface) Send(data []byte, address string) error {
|
func (li *LoRaInterface) Send(data []byte, address string) error {
|
||||||
return fmt.Errorf("LoRaInterface is only supported on TinyGo targets currently")
|
return fmt.Errorf("LoRaInterface is only supported on TinyGo targets currently")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -290,4 +290,3 @@ func (li *LoRaInterface) Stop() error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,3 @@ func (si *SerialInterface) Stop() error {
|
|||||||
func (si *SerialInterface) Send(data []byte, address string) error {
|
func (si *SerialInterface) Send(data []byte, address string) error {
|
||||||
return fmt.Errorf("SerialInterface is only supported on TinyGo targets currently")
|
return fmt.Errorf("SerialInterface is only supported on TinyGo targets currently")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -219,4 +219,3 @@ func (si *SerialInterface) SendKISS(command byte, data []byte) error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,3 @@ func (tc *TCPClientInterface) setTimeoutsLinux() error {
|
|||||||
func (tc *TCPClientInterface) setTimeoutsOSX() error {
|
func (tc *TCPClientInterface) setTimeoutsOSX() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,4 +66,3 @@ func (ui *UDPInterface) Stop() error {
|
|||||||
ui.Online = false
|
ui.Online = false
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user