From 94c9e996f530dca5bba17f2218e8bd9e8ec38de7 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 9 Apr 2025 14:05:10 +0200 Subject: [PATCH] Use one-liner insead of two lines --- restream/core.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/restream/core.go b/restream/core.go index 01d29560..c3d8e775 100644 --- a/restream/core.go +++ b/restream/core.go @@ -1194,12 +1194,10 @@ func (r *restream) updateProcess(id app.ProcessID, config *app.Config) error { //t.process.CreatedAt = task.process.CreatedAt // Transfer the report history to the new process - history := task.ExportParserReportHistory() - t.ImportParserReportHistory(history) + t.ImportParserReportHistory(task.ExportParserReportHistory()) // Transfer the metadata to the new process - metadata := task.ExportMetadata() - t.ImportMetadata(metadata) + t.ImportMetadata(task.ExportMetadata()) if err := r.deleteProcess(id); err != nil { return fmt.Errorf("delete process: %w", err)