From df1796b13fd0e36253166c47adcfda39ba0ea3df Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 13 Oct 2016 16:56:26 -0400 Subject: [PATCH] Removed unused branch in SQLUpdateCompiler.as_sql(). Unknown if it was ever needed. --- django/db/models/sql/compiler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index e7ccba6151..4e317d0371 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1135,8 +1135,6 @@ class SQLUpdateCompiler(SQLCompiler): update_params.append(val) else: values.append('%s = NULL' % qn(name)) - if not values: - return '', () table = self.query.tables[0] result = [ 'UPDATE %s SET' % qn(table),