Fixed bug which causes to show duplicated values of internal
and external storages
[verification] Filesystem and Archive tct - 100% pass.
Change-Id: Ic087583a906eecfa040d97cb903f4c99838c6591
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
for (var key in cacheVirtualToReal) {
if (cacheVirtualToReal.hasOwnProperty(key)) {
- ret.push(cloneStorage(cacheVirtualToReal[key]));
+ var found = false;
+ for (var i = 0; i < cacheStorages.length; ++i) {
+ if (key === ret[i].label) {
+ found = true;
+ break;
+ }
+ }
+ if (found === false) {
+ ret.push(cloneStorage(cacheVirtualToReal[key]));
+ }
}
}