Skip to content

Commit

Permalink
Move return statements to their own line
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Sep 12, 2023
1 parent b583999 commit 00ce283
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ public void addTag(OSMTag tag) {
* Adds a tag.
*/
public OSMWithTags addTag(String key, String value) {
if (key == null || value == null) return this;
if (key == null || value == null) {
return this;
}

if (tags == null) tags = new HashMap<>();
if (tags == null) {
tags = new HashMap<>();
}

tags.put(key.toLowerCase(), value);
return this;
Expand Down

0 comments on commit 00ce283

Please sign in to comment.