mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
no need for framer to return two values
This commit is contained in:
@@ -53,15 +53,15 @@ func init() {
|
||||
framingMethodString, ok := framingMethodRaw.(string)
|
||||
|
||||
if !ok {
|
||||
return nil, errors.New("misc.serial.client framing method must be a string")
|
||||
return nil, errors.New("net.tcp.server framing method must be a string")
|
||||
}
|
||||
framingMethod = framingMethodString
|
||||
}
|
||||
|
||||
framer, err := framer.GetFramer(framingMethod)
|
||||
framer := framer.GetFramer(framingMethod)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if framer == nil {
|
||||
return nil, fmt.Errorf("net.tcp.server unknown framing method: %s", framingMethod)
|
||||
}
|
||||
|
||||
ipString := "0.0.0.0"
|
||||
|
||||
Reference in New Issue
Block a user