Przeglądaj źródła

[impala] Simplify Session get_properties method

Jenny Kim 10 lat temu
rodzic
commit
95727b9
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      apps/beeswax/src/beeswax/models.py

+ 1 - 2
apps/beeswax/src/beeswax/models.py

@@ -414,8 +414,7 @@ class Session(models.Model):
     return TSessionHandle(sessionId=handle_id)
 
   def get_properties(self):
-    props_dict = json.loads(self.properties) if self.properties is not None else None
-    return props_dict
+    return json.loads(self.properties)
 
   def __str__(self):
     return '%s %s' % (self.owner, self.last_used)