flamarion / json_db_lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unused return

lucioveloso opened this issue · comments

In JsonDbHandler:

def query(self, key):
  if key not in self.decoded_json:
     raise MyException('Key not found')
  else:
     return key, self.decoded_json[key]

Does not make sense a method receiving a parameter key and returning it back.

Has been fixed some time ago... I have no idea about which commit I've fixed this stuff.