blob: d93da77e009bbc8e4617b8759d294dba8daac7e0 [file] [log] [blame] [raw]
const StorageBase = require('./storage').StorageBase;
class StorageNull extends StorageBase {
constructor(httpRootDir, compilerProps) {
super(httpRootDir, compilerProps);
}
storeItem(item) {
return Promise.resolve(item);
}
findUniqueSubhash() {
return Promise.resolve({
prefix: "null",
uniqueSubHash: "null",
alreadyPresent: true
});
}
expandId() {
return Promise.resolve({
config: "{}",
specialMetadata: null
});
}
incrementViewCount() {
return Promise.resolve();
}
}
module.exports = StorageNull;