1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

fix some lint

This commit is contained in:
Matthew Hodgson
2016-09-05 02:44:46 +01:00
parent ed5c061566
commit 888fbe3549
6 changed files with 31 additions and 32 deletions

View File

@@ -20,7 +20,7 @@ limitations under the License.
function _matches_wildcard(actual_value, filter_value) {
if (filter_value.endsWith("*")) {
type_prefix = filter_value.slice(0, -1);
var type_prefix = filter_value.slice(0, -1);
return actual_value.substr(0, type_prefix.length) === type_prefix;
}
else {
@@ -47,7 +47,7 @@ function FilterComponent(filter_json) {
this.not_senders = filter_json.not_senders || [];
this.contains_url = filter_json.contains_url || null;
};
}
/**
* Checks with the filter component matches the given event
@@ -97,7 +97,7 @@ FilterComponent.prototype.checkFields =
}
});
contains_url_filter = this.filter_json.contains_url;
var contains_url_filter = this.filter_json.contains_url;
if (contains_url_filter !== undefined) {
if (contains_url_filter !== contains_url) {
return false;