<p dir="auto">Simplifying if-else structures and condensing repeated expressions.<br>
At least the things I found with my regex search.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5633'>https://github.com/openstreetmap/openstreetmap-website/pull/5633</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/commits/356a39b8d8ac71363ee98084cd610da7f4f1825b" class="commit-link">356a39b</a> Reduce condition complexity</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/commits/af9759a8dccfa391049ca5403667d6a882011fab" class="commit-link">af9759a</a> Lessen code repetition</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/commits/ef3c4be33f5d18da0321fa7ea278a440ec196df7" class="commit-link">ef3c4be</a> Remove IE<10 workaround</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files">8 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-0e145ba000e96b1a45d230275e350e4e8514efb4db7dbcfa228fe1003896c9b4">app/assets/javascripts/application.js</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-e8b0bd562b0aaead17e44d572d51fcc72fa846c7b54ae5df2dc6434fb80834dc">app/assets/javascripts/index/changeset.js</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
(39)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-ffadccc633e42804425bc8e2e023dc83e8fd879d1910165d2d41c11b76c78b4d">app/assets/javascripts/leaflet.note.js</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-d90520fa15051d9e115e9851d472a8ce787aef5ec6bc846c580dd24bf2ee0c81">app/assets/javascripts/leaflet.query.js</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633/files#diff-3635093596ec53c4cebe7c2263939a5b01c8b9c71462506873f73af8429cabbc">app/assets/javascripts/router.js</a>
(7)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5633.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5633.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5633.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5633.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5633">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPRHJGSDL3SAER5USL2OZGU5AVCNFSM6AAAAABWX6UADSVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2DAMRQG42DGNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJFFZOQKTPJUAIIYTT2OZGU5A5CNFSM6AAAAABWX6UADSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKSSRAJM.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5633</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5633",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5633",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>