<p dir="auto">Mostly making variables local.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/osm2pgsql/pull/2015'>https://github.com/openstreetmap/osm2pgsql/pull/2015</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/commits/c128647ae6b7c9b24890694e7c435a22cdd6b6d9" class="commit-link">c128647</a>  Lua example configs: Using local variables is good practice</li>
  <li><a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/commits/48175e9f6c7de7c7bdb20c26897bbf7116b8d964" class="commit-link">48175e9</a>  Lua example configs: Remove unnecessary local var shadowing outer var</li>
  <li><a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/commits/5eaf9619d5f99a61794d8a5004e67cba960d8920" class="commit-link">5eaf961</a>  Lua example configs: Simpler (and more correct) check</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files">14 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-2a823b2a8eef557abaae721d85e5eef923b6324463149b58e87d37327e70e065">flex-config/addresses.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-14b4d739d19890df2ec55497b633f4d9fa1f7aad89e1e7f249e6f97f119f5952">flex-config/attributes.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-0d5cc4e8e725e2bb00a820f6d04c39f6d2bb55366af26e4cc7a0d3b1d94b1045">flex-config/bbox.lua</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-5cfe4dd0add8cc28ae7437fe36c1810bddb59e8c9dfd6f30b269188572f3c7c2">flex-config/compatible.lua</a>
    (27)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-c26cb61663cf3396989f095c1d0bc1e83a55b09b5aff26649946e71a000f64af">flex-config/data-types.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-4e3d88cb60d256cd1ac36519a95039756fa5ba4eb9c6448f3d2c3cddceb0186e">flex-config/expire.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-ecb303c7f197fdf92f6c3cae65b30165bf0b3e8842b6df663b4e9ee7f1f4d5e9">flex-config/gen/forests.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-b1f144bb79113736c5c284f30f3ec97ec63b5036a8c1d8eecf21c8604f83796c">flex-config/generic.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-671a7120b35283e10c9f32cf6cae7939f7d53c5623081c1066d54d4df7c49040">flex-config/geometries.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-9e83c8554b4c314f902bae63cec9cf2dfbebb3efab69cf8ebd76b38cd843b4ef">flex-config/indexes.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-1fbdf6201f2cfbec1bc83734437d612304d18c513b340558765ee4e1bed929a6">flex-config/labelpoint.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-6e849e65642dcc4e1dc8cf4ac5673fa6887d16f8041b16545c8f9bc0496b981b">flex-config/route-relations.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-021cb72848d3897bdfad196e31e7d20ac9d7bba8f6a6664f32b2fc9b6ef0445e">flex-config/simple.lua</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/2015/files#diff-c40ad96c16916ba4000dd99231b01cdd4ae68138d51f60c74148f50d4ee95ea4">flex-config/unitable.lua</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/2015.patch'>https://github.com/openstreetmap/osm2pgsql/pull/2015.patch</a></li>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/2015.diff'>https://github.com/openstreetmap/osm2pgsql/pull/2015.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/osm2pgsql/pull/2015">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XIXJXOAY45GWSFUHLXSDR4NANCNFSM6AAAAAA2YKGKSM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353XHWAG6TR4QG6ZDSK3XSDR4NA5CNFSM6AAAAAA2YKGKSOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGZGNWBA.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/osm2pgsql/pull/2015</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/osm2pgsql/pull/2015",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/2015",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>