You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2019/03/26 15:35:53 UTC
[incubator-superset] branch master updated:
fix(useless-self-assignment): correct useless-self-assignment (#7090)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new f556da8 fix(useless-self-assignment): correct useless-self-assignment (#7090)
f556da8 is described below
commit f556da80cbe370124243ffe0cf8e21d495376610
Author: rasmi-ranjan-guavus <ra...@guavus.com>
AuthorDate: Tue Mar 26 21:05:44 2019 +0530
fix(useless-self-assignment): correct useless-self-assignment (#7090)
* fix(useless-self-assignment): correct useless-self-assignment
* udated code formatting
---
superset/views/utils.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/superset/views/utils.py b/superset/views/utils.py
index 9b2bef0..eb68316 100644
--- a/superset/views/utils.py
+++ b/superset/views/utils.py
@@ -24,9 +24,7 @@ from superset import db
def bootstrap_user_data(username=None, include_perms=False):
- if username:
- username = username
- else:
+ if not username:
username = g.user.username
user = (