From 1a70d1252508a4befab4d814ce6aa68850ee294f Mon Sep 17 00:00:00 2001 From: Henri DF Date: Wed, 24 Feb 2016 09:17:26 -0800 Subject: [PATCH] whitespace --- userspace/digwatch/digwatch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/userspace/digwatch/digwatch.cpp b/userspace/digwatch/digwatch.cpp index 88f3b7d6..1597cd0a 100644 --- a/userspace/digwatch/digwatch.cpp +++ b/userspace/digwatch/digwatch.cpp @@ -118,13 +118,13 @@ captureinfo do_inspect(sinsp* inspector, } formatter = formats->lookup_formatter(ev->get_check_id()); - if (!formatter) + if(!formatter) { throw sinsp_exception("Error: No formatter for event with id %d " + to_string(ev->get_check_id())); } bool has_all = formatter->tostring(ev, &line); - if (!has_all) { + if(!has_all) { cout << "(missing fields) "; } cout << line; @@ -243,7 +243,7 @@ int digwatch_init(int argc, char **argv) #endif } - if (rules_file.size() == 0) { + if(rules_file.size() == 0) { usage(); result = EXIT_FAILURE; goto exit; @@ -252,13 +252,13 @@ int digwatch_init(int argc, char **argv) // char* env_lua_dir = getenv("DIGWATCH_LUA_DIR"); - if (env_lua_dir) + if(env_lua_dir) { lua_dir = string(env_lua_dir); } trim(lua_main_filename); - if (lua_main_filename.size() == 0) + if(lua_main_filename.size() == 0) { lua_main_filename = lua_dir + DIGWATCH_LUA_MAIN; }