title: WebStorm error: expression statement is not assignment or call
body: <p>I'm using WebStorm and I'm getting an error that I can't understand. Node.js + MongoDB.</p>
  
  <pre><code>var mongoose = require('mongoose');
  
  mongoose.Promise = global.Promise;
  mongoose.connect(' mongodb://localhost:27017/TodoApp');
  
  var Todo = mongoose.model('Todo', {
      text: {
          type: String
      },
      completed: {
          type: Boolean
      },
      completedAt: {
          type: Number
      }
  });
  
  var newTodo = new Todo({
      text: 'Cook dinner'
  });
  </code></pre>
  
  <p>The problem is in this block: </p>
  
  <pre><code>newTodo.save().then((doc) =&gt; {
      console.log('Saved todo', doc);
  }, (e) =&gt; {
      console.log('Unable to save todo')
  })
  </code></pre>
  
  <p>P.S.: The code works fine.</p>