mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Variable collisions; Possible use of nil value (#256)
* Variable '*' collides with imported package name * Variable 'error' collides with builtin interface * '*' may have 'nil' or other unexpected value as its corresponding error variable may be not 'nil'
This commit is contained in:
@ -69,9 +69,9 @@ func (v *VideoSize) getString() string {
|
||||
|
||||
func (t *Transcoder) Stop() {
|
||||
log.Traceln("Transcoder STOP requested.")
|
||||
error := _commandExec.Process.Kill()
|
||||
if error != nil {
|
||||
log.Errorln(error)
|
||||
err := _commandExec.Process.Kill()
|
||||
if err != nil {
|
||||
log.Errorln(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user