Commit 28ce6ba5 authored by nanahira's avatar nanahira

small tweak

parent 6117d942
Pipeline #4987 passed with stages
in 2 minutes and 46 seconds
......@@ -228,7 +228,7 @@ export class UpdateService extends ConsoleLogger {
.getOne();
let archives = allPartArchives;
if (fullArchive && this.getCostOfArchives([fullArchive]) <= this.getCostOfArchives(allPartArchives)) {
if (!allPartArchives.length || (fullArchive && this.getCostOfArchives([fullArchive]) <= this.getCostOfArchives(allPartArchives))) {
archives = [fullArchive];
}
//this.log(`Time used: ${moment().diff(clock, 'seconds')} s`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment