audio: inline syntax for NewDevice

This commit is contained in:
Trek H 2019-11-11 17:23:15 +10:30
parent 3df9300c1c
commit 78b31c6322
1 changed files with 1 additions and 6 deletions

View File

@ -94,12 +94,7 @@ type Logger interface {
type OpenError error
// NewDevice initializes and returns a Device which has its logger set as the given logger.
func NewDevice(l Logger) *Device {
d := &Device{
l: l,
}
return d
}
func NewDevice(l Logger) *Device { return &Device{l: l} }
// Set will take a Config struct, check the validity of the relevant fields
// and then performs any configuration necessary. If fields are not valid,