Skip to content

Commit

Permalink
Move condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Durant committed May 11, 2017
1 parent 5faa293 commit 594f039
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gcsfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,8 @@ def connect(self, refresh=False):
"""
token = self.input_token
project, access = self.project, self.access
if token is not None:
if ('type' in token or isinstance(token, str)
and str(token) != 'cloud'):
if token is not None and str(token) != 'cloud':
if 'type' in token or isinstance(token, str):
token = self._parse_gtoken(token)
self.tokens[(project, access)] = token
if (project, access) in self.tokens:
Expand Down

0 comments on commit 594f039

Please sign in to comment.