[seahorse] gkr: Remove a logical NOT for readability



commit c5bc052d817c6984edb08ed832d26766ed832eee
Author: Wang Bing-hua <louiswpf gmail com>
Date:   Tue Dec 21 23:15:37 2021 +0800

    gkr: Remove a logical NOT for readability
    
    The comment says, "If it's customized by the application or user then
    display that."
    Remove the logical NOT for readability.

 gkr/gkr-item-info.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gkr/gkr-item-info.vala b/gkr/gkr-item-info.vala
index 2e772913..2b22b9fb 100644
--- a/gkr/gkr-item-info.vala
+++ b/gkr/gkr-item-info.vala
@@ -155,10 +155,10 @@ public class GkrNetworkPassInfo : ItemInfo {
             return;
 
         /* If it's customized by the application or user then display that */
-        if (!is_custom_network_label (server, user, object, port, label))
-            this.label = calc_network_label (attrs, true);
-        else
+        if (is_custom_network_label (server, user, object, port, label))
             this.label = label;
+        else
+            this.label = calc_network_label (attrs, true);
 
         unowned string symbol = "@";
         if (user == null) {


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