From 9c28b1d37647902d16c891c6e9d26141fd14c510 Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Thu, 15 Nov 2012 13:05:42 +0100 Subject: [PATCH] Small code refactoring --- src/createrepo_c.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/createrepo_c.c b/src/createrepo_c.c index e319fc6..3a7fbe6 100644 --- a/src/createrepo_c.c +++ b/src/createrepo_c.c @@ -242,12 +242,12 @@ dumper_thread(gpointer data, gpointer user_data) g_debug("%s metadata are obsolete -> generating new", task->filename); } - } - if (old_used) { - // We have usable old data, but we have to set proper locations - md->location_href = (char *) location_href; - md->location_base = (char *) location_base; + if (old_used) { + // We have usable old data, but we have to set proper locations + md->location_href = (char *) location_href; + md->location_base = (char *) location_base; + } } } -- 2.7.4