[nautilus] rename-file-popover: Remove redundant calculation
- From: Carlos Soriano <csoriano src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [nautilus] rename-file-popover: Remove redundant calculation
 
- Date: Mon, 21 May 2018 14:55:41 +0000 (UTC)
 
commit 563c5f8d18994616c043309e3252c7d164bbad92
Author: Harish Nair <harishnair96 gmail com>
Date:   Mon May 21 19:53:23 2018 +0530
    rename-file-popover: Remove redundant calculation
    
    Removes a calculation that has already been done before.
    Instead uses the variable that contains the result of the calculation.
 src/nautilus-rename-file-popover-controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-rename-file-popover-controller.c b/src/nautilus-rename-file-popover-controller.c
index a651200a0..8bbe05348 100644
--- a/src/nautilus-rename-file-popover-controller.c
+++ b/src/nautilus-rename-file-popover-controller.c
@@ -112,7 +112,7 @@ nautilus_rename_file_popover_controller_name_is_valid (NautilusFileNameWidgetCon
     name_length = strlen (name);
     max_name_length = nautilus_directory_get_max_child_name_length (directory);
 
-    if (strlen (name) == 0)
+    if (name_length == 0)
     {
         return FALSE;
     }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]