Convert ReviewReply.discardIfEmpty to use promises.

Review Request #11633 — Created May 28, 2021 and updated

david
Review Board
master
reviewboard

This change updates the ReviewReply.discardIfEmpty logic to use promises
instead of success/error callbacks.

  • Ran js-tests.
  • Verified that the draft reply object was properly discarded when there
    were no more comments attached.
Summary
Convert ReviewReply.discardIfEmpty to use promises.
Description From Last Updated

Col: 53 Missing semicolon.

reviewbotreviewbot

Col: 57 Missing semicolon.

reviewbotreviewbot

Think this can be .and.resolveTo(true).

chipx86chipx86
Checks run (1 failed, 1 succeeded)
flake8 passed.
JSHint failed.

JSHint

david
david
chipx86
  1. 
      
  2. Think this can be .and.resolveTo(true).

  3. 
      
david
david
Review request changed
Loading...