mirror of
https://github.com/rust-lang/rust
synced 2024-10-03 23:35:18 +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 a new issue