From dbd774fedb21fa55a23a741cc0ecaf1be556e6aa Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 26 Aug 2022 18:02:07 +0200 Subject: simplify a bit of code --- src/debug/Log.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/debug/Log.cpp') diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 67c160bc..403098e4 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -6,10 +6,7 @@ #include void Debug::init(std::string IS) { - if (ISDEBUG) - logFile = "/tmp/hypr/" + IS + "/hyprlandd.log"; - else - logFile = "/tmp/hypr/" + IS + "/hyprland.log"; + logFile = "/tmp/hypr/" + IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log"); } void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) { -- cgit v1.2.3