Use goog.asserts.fail

This commit is contained in:
Tom Payne
2013-04-08 19:10:04 +02:00
parent 098bddb72f
commit e132943eef
7 changed files with 7 additions and 7 deletions

View File

@@ -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;
}
};