]> git.tdb.fi Git - builder.git/blobdiff - source/builder.cpp
Refactor the constructor of SourcePackage::Loader
[builder.git] / source / builder.cpp
index ceb7db3581f7db02915b8433fdfda56532657811..21592661624742d5085d48a73a1c4ccf76e79572 100644 (file)
@@ -333,10 +333,7 @@ void Builder::Loader::package(const string &n)
 {
        SourcePackage *pkg = new SourcePackage(obj, n, get_source());
 
-       if(options)
-               load_sub(*pkg, *options);
-       else
-               load_sub(*pkg);
+       load_sub(*pkg, options);
 
        if(obj.build_type)
                pkg->set_build_type(*obj.build_type);