Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix @typescript-eslint/prefer-return-this-type.

Anders Kaseorg5ac9b644eb07
diff --git a/web/src/fold_dict.ts b/web/src/fold_dict.ts
index 67297b2e589..40f9647f79d 100644
--- a/web/src/fold_dict.ts
+++ b/web/src/fold_dict.ts
@@ -29,7 +29,7 @@ export class FoldDict<V> {
return mapping.v;
}
- set(key: string, value: V): FoldDict<V> {
+ set(key: string, value: V): this {
this._items.set(this._munge(key), {k: key, v: value});
return this;
}