Use goog.asserts.fail
This commit is contained in:
@@ -74,7 +74,7 @@ ol.array.linearFindNearest = function(arr, target, direction) {
|
||||
}
|
||||
// We should never get here, but the compiler complains
|
||||
// if it finds a path for which no number is returned.
|
||||
goog.asserts.assert(false);
|
||||
goog.asserts.fail();
|
||||
return n - 1;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user