[gnome-usage] app-item: remove unnecessary use of ternary op
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage] app-item: remove unnecessary use of ternary op
- Date: Tue, 30 Jul 2019 07:22:56 +0000 (UTC)
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]