mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
fix lint
This commit is contained in:
parent
d13f6ba750
commit
6b3a6ddb39
@ -131,7 +131,7 @@ export function setContextValue(key: string, value: any): Thenable<void> {
|
||||
export function memoizeAsync<Ret, TThis, Param extends string>(func: (this: TThis, arg: Param) => Promise<Ret>) {
|
||||
const cache = new Map<string, Ret>();
|
||||
|
||||
return async function (this: TThis, arg: Param) {
|
||||
return async function(this: TThis, arg: Param) {
|
||||
const cached = cache.get(arg);
|
||||
if (cached) return cached;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user