mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: update tslint rules (#7391)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as common from "./image-cache-common";
|
||||
import * as common from "./image-cache-common";
|
||||
import * as trace from "../../trace";
|
||||
|
||||
let LruBitmapCacheClass;
|
||||
@@ -10,6 +10,7 @@ function ensureLruBitmapCacheClass() {
|
||||
class LruBitmapCache extends android.util.LruCache<string, android.graphics.Bitmap> {
|
||||
constructor(cacheSize: number) {
|
||||
super(cacheSize);
|
||||
|
||||
return global.__native(this);
|
||||
}
|
||||
|
||||
@@ -20,7 +21,7 @@ function ensureLruBitmapCacheClass() {
|
||||
|
||||
return result;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
LruBitmapCacheClass = LruBitmapCache;
|
||||
}
|
||||
@@ -64,6 +65,7 @@ export class Cache extends common.Cache {
|
||||
|
||||
public get(key: string): any {
|
||||
const result = this._cache.get(key);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user