util.promise: Remove some redundant checks, add tests confirming redundancy
This lines don't appear to do anything useful, and all tests pass when they
are removed. Discovered via mutation testing.
I added extra tests to exercise this code, because I wasn't certain that there
were no side-effects caused by removal. Everything appears to be fine, thanks
to the "pending" check at the start of promise_settle().
root = true
[*]
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[CHANGES]
indent_size = 4
indent_style = space
[configure]
indent_size = 3
indent_style = space
[**.xml]
indent_size = 2
indent_style = space