Skip to content

Commit

Permalink
fix: cacheをmodelからのみ使えるよう制限
Browse files Browse the repository at this point in the history
  • Loading branch information
kamecha committed Mar 14, 2024
1 parent 81f00d8 commit c671265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion denops/traqvim/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export type channelMessageOptions = {
order?: "asc" | "desc";
};

export const channelMapCache: Map<string, traq.Channel> = new Map();
// TODO: ↓チャンネル周りはclassに分離しても良いかも
const channelMapCache: Map<string, traq.Channel> = new Map();

const getChannelCache = () => {
return channelMapCache;
Expand Down

0 comments on commit c671265

Please sign in to comment.