[gnome-usage] app-item: remove unnecessary use of ternary op



commit 76c3aeba8020f675b9024721feda46613106d5b9
Author: Christian Kellner <christian kellner me>
Date:   Wed Jul 17 14:11:55 2019 +0200

    app-item: remove unnecessary use of ternary op
    
    The expression is already a bool - can't get more bool than that.

 src/app-item.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/app-item.vala b/src/app-item.vala
index d25fb8c..b54f80b 100644
--- a/src/app-item.vala
+++ b/src/app-item.vala
@@ -28,7 +28,7 @@ namespace Usage
         }
 
         public static bool have_app_info(string cmdline) {
-            return apps_info.get(cmdline) != null ? true : false;
+            return apps_info.get(cmdline) != null;
         }
 
         public AppItem(Process process) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]