diff options
author | Florian Frank <flori@ping.de> | 2013-04-29 01:39:47 -0700 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2013-04-29 01:39:47 -0700 |
commit | a7e69ec559caccae36f875ad035f034c7c491d8e (patch) | |
tree | 48126c6bf09601b3cd87881dc697a44ce13f4315 | |
parent | 18261880e33b9bd70152d860ea88c784ebef07e4 (diff) | |
parent | 00d7a14b3e954126754ba36478f6d69e6c591249 (diff) | |
download | json-a7e69ec559caccae36f875ad035f034c7c491d8e.tar.gz |
Merge pull request #170 from ginriki/remove-redundancy
remove unnecessary if
-rw-r--r-- | lib/json/pure/generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json/pure/generator.rb b/lib/json/pure/generator.rb index b6cf5e5..9056a5d 100644 --- a/lib/json/pure/generator.rb +++ b/lib/json/pure/generator.rb @@ -368,7 +368,7 @@ module JSON } depth = state.depth -= 1 result << state.object_nl - result << state.indent * depth if indent if indent + result << state.indent * depth if indent result << '}' result end |