aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dm/DM.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index ebe37ae602..d558e08ca6 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1303,13 +1303,9 @@ int dm_main();
int dm_main() {
setup_crash_handler();
- if (FLAGS_verbose) {
- if(!FLAGS_writePath.isEmpty()) {
- sk_mkdir(FLAGS_writePath[0]);
- gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w", stderr);
- } else {
- gVLog = stderr;
- }
+ if (FLAGS_verbose && !FLAGS_writePath.isEmpty()) {
+ sk_mkdir(FLAGS_writePath[0]);
+ gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w", stderr);
}
JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing.