Avoid code duplication
This commit is contained in:
parent
fedcf79dc2
commit
646e04661b
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue