From b8d0d0c3b6b2ffe40921aa4c247c101dd0ce958d Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 1 Jul 2023 22:10:22 +0800 Subject: Refactor: rename consts to follow Go idiom. Fix const comment style. --- recording/runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recording') diff --git a/recording/runner.go b/recording/runner.go index fe7aa21..1f2f101 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -28,7 +28,7 @@ type TaskResult struct { Error error } -const kSpecialExtName = "partial" +const SpecialExtName = "partial" var errLiveEnded = common.NewRecoverableTaskError("live is ended", nil) @@ -281,7 +281,7 @@ func record( originalExtName := mo.TupleToResult(myurl.Url(streamSource.URL).FileExtension()).OrElse("flv") if task.Download.UseSpecialExtNameBeforeFinishing { - extName = kSpecialExtName + extName = SpecialExtName } else { extName = originalExtName } -- cgit v1.2.3