From 227f25a3fbd40e7e4602efcafea6ceb1ac34749d Mon Sep 17 00:00:00 2001 From: saxon Date: Mon, 26 Nov 2018 00:40:18 +1030 Subject: [PATCH] revid: improved some naming and revmoed uneeded const --- revid/revid.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index af604d31..df534f15 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -74,11 +74,6 @@ const ( pkg = "revid:" ) -const ( - out1 = 0 - out2 = 1 -) - // Log Types const ( Error = "Error" @@ -204,9 +199,9 @@ func (r *Revid) reset(config Config) error { } r.config = config - for _, destination := range r.destination { - if destination != nil { - err = destination.close() + for _, dest := range r.destination { + if dest != nil { + err = dest.close() if err != nil { return err } @@ -369,8 +364,8 @@ loop: count += chunk.Len() r.config.Logger.Log(smartlogger.Debug, pkg+"about to send") - for i, destination := range r.destination { - err = destination.load(chunk) + for i, dest := range r.destination { + err = dest.load(chunk) if err != nil { r.config.Logger.Log(smartlogger.Error, pkg+"failed to load clip to output"+strconv.Itoa(i)) }