Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Mar 25, 2024
1 parent 66b986a commit 6e37c45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/services/CacheService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class CacheService<T> {

constructor(private cachedItemValidityTimeMs: number = 60000) {}

public getItem(key: string): CacheItem<T> | undefined{
public getItem(key: string): CacheItem<T> | undefined {
Guard.ThrowIfUndefined('key', key);

const cacheItem = this.cache.get(key);
Expand Down
2 changes: 1 addition & 1 deletion src/services/CoinGeckoPriceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class CoinGeckoPriceProvider implements IPriceProvider {
return 0;
}

public async getPriceWithTimestamp(symbol: string, currency: string | undefined): Promise<TokenInfo>{
public async getPriceWithTimestamp(symbol: string, currency: string | undefined): Promise<TokenInfo> {
const price = await this.getPrice(symbol, currency);

return {
Expand Down
3 changes: 1 addition & 2 deletions src/services/IPriceProvider.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export type TokenInfo = {
price: number;
lastUpdated: number;
}

};

/**
* Definition of provider for access token price.
Expand Down

0 comments on commit 6e37c45

Please sign in to comment.