title: Why is lint giving a warning ineffectual assignment to (ineffassign)
body: <p>Getting a lint warning <code>ineffectual assignment to &quot;cfg&quot;</code> at line <code>cfg := &amp;utils.Config{}</code>. Why is that ?</p>
  <pre><code>    cfg := &amp;utils.Config{}
      env := os.Getenv(&quot;TEST&quot;)
      if strings.EqualFold(env, &quot;INT&quot;) {
          cfg = utils.GetIntConfig()
      } else {
          cfg = utils.GetConfig()
      }
  
      cgw.Cgw(cfg)
  </code></pre>