MCPcopy Index your code
hub / github.com/MALSync/MALSync / hasValueAndIsNotEmpty

Method hasValueAndIsNotEmpty

src/utils/Cache.ts:38–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 async hasValueAndIsNotEmpty() {
39 const value = await this.getStorage();
40 if (
41 this.containsValue(value) &&
42 typeof value.data !== 'undefined' &&
43 value.data !== null &&
44 Object.keys(value.data).length &&
45 this.ttlValid(value)
46 ) {
47 return true;
48 }
49 return false;
50 }
51
52 async fullState() {
53 const value = await this.getStorage();

Callers 4

getProgressTypeListFunction · 0.95
fillRelationsMethod · 0.95
checkForFillerMethod · 0.95
initFunction · 0.80

Calls 4

getStorageMethod · 0.95
containsValueMethod · 0.95
ttlValidMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected