title: What's wrong with awaiting a promise chain?
body: <p>I’m working on an Angular 6 application and I’ve been told the following is an anti-pattern:</p>
  
  <pre><code>await someFunction().then(result =&gt; {
      console.log(result);
  });
  </code></pre>
  
  <p>I realize that it is pointless to await a promise chain. If someFunction() returns a promise, you don’t need a promise chain if you’re awaiting it. You can do this:</p>
  
  <pre><code>const result = await someFunction();
  console.log(result);
  </code></pre>
  
  <p>But I’m being told awaiting a promise chain can cause bugs, or that it will break things in my code. If the first code snippet above does the same thing as the second snippet, what does it matter which one is used. What dangers does the first snippet introduce that the second one doesn’t?</p>