Skip to content

Commit

Permalink
fix getItem return value
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanA-Kaltura authored Feb 6, 2024
1 parent 8a56dee commit bbd6f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/storage/base-storage-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class BaseStorageManager {
* @returns {any} - The item value
*/
public static getItem(key: string): any {
StorageWrapper.getItem(key, this.getStorageObject());
return StorageWrapper.getItem(key, this.getStorageObject());
}

/**
Expand Down Expand Up @@ -152,7 +152,7 @@ export class BaseStorageManager {
const obj = {};
Object.keys(this.StorageKeys).forEach((key) => {
const value = this.StorageKeys[key];
const item = StorageWrapper.getItem(value, this.getStorageObject());
const item = this.getItem(value, this.getStorageObject());

Check failure on line 155 in src/common/storage/base-storage-manager.ts

View workflow job for this annotation

GitHub Actions / build-types / running-tests (ubuntu-latest)

Expected 1 arguments, but got 2.

Check failure on line 155 in src/common/storage/base-storage-manager.ts

View workflow job for this annotation

GitHub Actions / type-check / running-tests (ubuntu-latest)

Expected 1 arguments, but got 2.

Check failure on line 155 in src/common/storage/base-storage-manager.ts

View workflow job for this annotation

GitHub Actions / build / running-tests (ubuntu-latest)

Expected 1 arguments, but got 2.
// dont change to !==, it effects the logic
// eslint-disable-next-line
if (item != null) {
Expand Down

0 comments on commit bbd6f63

Please sign in to comment.