From 26962973545f946fd31ac4fee345502c72b03423 Mon Sep 17 00:00:00 2001
From: Konrad Mohrfeldt <konrad.mohrfeldt@farbdev.org>
Date: Sat, 23 Apr 2022 17:10:52 +0200
Subject: [PATCH] style: remove useless temporary variable

---
 program/models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/program/models.py b/program/models.py
index bf5abb47..0b634d0c 100644
--- a/program/models.py
+++ b/program/models.py
@@ -975,12 +975,11 @@ class Schedule(models.Model):
 
         # If 'dryrun' is true, just return the projected changes instead of executing them
         if "dryrun" in sdl and sdl["dryrun"]:
-            output = {
+            return {
                 "create": [model_to_dict(ts) for ts in create],
                 "update": [model_to_dict(ts) for ts in update],
                 "delete": [model_to_dict(ts) for ts in delete],
             }
-            return output
 
         """Database changes if no errors found"""
 
-- 
GitLab