commit 67261624b043148ebae76dd556b606cba54bdf70 parent 50087132341b99df88635cfd7b8a2f1f659b2a64 Author: cfillion <cfillion@users.noreply.github.com> Date: Mon, 5 Jun 2017 23:40:11 -0400 import: remove useless condition Diffstat:
M | src/import.cpp | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/import.cpp b/src/import.cpp @@ -189,7 +189,7 @@ bool Import::read(MemoryDownload *dl) return true; } } - else if(exists && remote.isEnabled()) + else if(exists && remote.isEnabled()) // url is also the same return true; // nothing to do remote.setName(index->name()); @@ -240,7 +240,7 @@ bool Import::import(const ImportData &data) Config *config = m_reapack->config(); config->remotes.add(data.remote); - if(config->install.autoInstall || data.remote.autoInstall()) { + if(config->install.autoInstall) { if(Transaction *tx = m_reapack->setupTransaction()) { tx->synchronize(data.remote); return true;