mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
js: Convert _.indexOf(a, …) to a.indexOf(…).
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
29dbf8ec77
commit
788c5afbcf
@@ -12,7 +12,7 @@ function is_image_format(file) {
|
||||
if (!type) {
|
||||
return false;
|
||||
}
|
||||
return _.indexOf(supported_types, type) >= 0;
|
||||
return supported_types.indexOf(type) >= 0;
|
||||
}
|
||||
|
||||
exports.build_widget = function (
|
||||
|
||||
Reference in New Issue
Block a user