Skip to content

Commit

Permalink
Omit trailing comma when no extra dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Keith committed Feb 16, 2018
1 parent c3526d5 commit 7ca110d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def submit(self, type, type_instance, value, db=None, extra_dims=None):

encoded_dims = self.encode_dims(discovered_dims)
if self.dimensions:
encoded_dims = self.dimensions + "," + encoded_dims
encoded_dims += ("," if encoded_dims else "") + self.dimensions

# set plugin_instance
if encoded_dims:
Expand Down

0 comments on commit 7ca110d

Please sign in to comment.