Remove unnecessary call to topoSortPaths()
exportPaths() already does this.
This commit is contained in:
@@ -922,9 +922,7 @@ static void opServe(Strings opFlags, Strings opArgs)
|
||||
|
||||
case cmdExportPaths: {
|
||||
readInt(in); // obsolete
|
||||
Paths sorted = store->topoSortPaths(readStorePaths<PathSet>(*store, in));
|
||||
reverse(sorted.begin(), sorted.end());
|
||||
store->exportPaths(sorted, out);
|
||||
store->exportPaths(readStorePaths<Paths>(*store, in), out);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user