Avoid code duplication

This commit is contained in:
Andre D 2015-06-11 03:13:25 -04:00
parent fedcf79dc2
commit 646e04661b

View file

@ -48,8 +48,7 @@ upload.modules.addmodule({
this.cached_seed = data.seed
},
cacheresult: function(data) {
this.cached = data.encrypted
this.cached_seed = data.seed
this.cache(data.seed, data.encrypted)
},
download: function (seed, progress, done) {
if (this.cached_seed == seed) {