mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
prefer PlainText interface over String interface
This commit is contained in:
parent
f176afee6f
commit
b4f6653ccc
|
@ -67,12 +67,12 @@ func (n *Notifier) NotifyTo(channel string, obj interface{}, args ...interface{}
|
|||
log.Infof(a, pureArgs...)
|
||||
message = fmt.Sprintf(a, pureArgs...)
|
||||
|
||||
case types.Stringer:
|
||||
message = a.String()
|
||||
|
||||
case types.PlainText:
|
||||
message = a.PlainText()
|
||||
|
||||
case types.Stringer:
|
||||
message = a.String()
|
||||
|
||||
default:
|
||||
log.Errorf("unsupported notification format: %T %+v", a, a)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user