Skip to content

Commit 235ab81

Browse files
sym: fixing bug introduced in most recent commit that uncommented broken code
1 parent a85badc commit 235ab81

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/utils/symmetric-cpgs.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ main_symmetric_cpgs(int argc, const char **argv) {
127127
const string filename(leftover_args.front());
128128
/****************** END COMMAND LINE OPTIONS *****************/
129129

130-
const bool show_progress = VERBOSE && isatty(fileno(stderr));
130+
// const bool show_progress = VERBOSE && isatty(fileno(stderr));
131131
bgzf_file in(filename, "r");
132132
if (!in) throw std::runtime_error("could not open file: " + filename);
133133

@@ -141,10 +141,11 @@ main_symmetric_cpgs(int argc, const char **argv) {
141141
sites_are_sorted = process_sites(in, out);
142142

143143
if (!sites_are_sorted) {
144+
namespace fs = std::filesystem;
144145
cerr << "sites are not sorted in: " << filename << endl;
145-
const std::filesystem::path outpath{outfile};
146-
if (std::filesystem::exists(outpath))
147-
std::filesystem::remove(outpath);
146+
const fs::path outpath{outfile};
147+
if (fs::exists(outpath))
148+
fs::remove(outpath);
148149
return EXIT_FAILURE;
149150
}
150151
}

0 commit comments

Comments
 (0)