Use one-liner insead of two lines

This commit is contained in:
Ingo Oppermann 2025-04-09 14:05:10 +02:00
parent 13311e6d90
commit 94c9e996f5
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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)