js: Convert _.isEmpty(a) to a.length !== 0.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-07 21:23:59 -08:00
committed by Tim Abbott
parent 8abf5da717
commit d0b0a64af3
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ function immediate(f) {
// Find the files we need to run.
const finder = require('./finder.js');
const files = finder.find_files_to_run(); // may write to console
if (_.isEmpty(files)) {
if (files.length === 0) {
throw "No tests found";
}