Skip to content

Commit

Permalink
Cosmetic. Tweaked some code to look better.
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Feb 5, 2013
1 parent 56bd8f1 commit 83e632b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elasticutils/tests/__init__.py
Expand Up @@ -89,10 +89,10 @@ def create_index(cls, settings=None):
es.delete_index(cls.index_name)
except pyelasticsearch.exceptions.ElasticHttpNotFoundError:
pass
if settings == None:
settings = {}
else:
if settings:
settings = {'settings': settings}
else:
settings = {}
es.create_index(cls.index_name, **settings)

@classmethod
Expand Down

0 comments on commit 83e632b

Please sign in to comment.