mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
REFACTOR: Remove _.first
from codebase
This commit is contained in:
@ -267,7 +267,7 @@ QUnit.assert.present = function(actual, message) {
|
||||
};
|
||||
|
||||
QUnit.assert.containsInstance = function(collection, klass, message) {
|
||||
const result = klass.detectInstance(_.first(collection));
|
||||
const result = klass.detectInstance(collection[0]);
|
||||
this.pushResult({
|
||||
result,
|
||||
message
|
||||
|
Reference in New Issue
Block a user