commit 03897206bb2863f18138a1eb37d0486bf27b7acb
Author: Richard Kimberly Heck <rikih...@lyx.org>
Date:   Fri Dec 18 16:59:55 2020 -0500

    Minor code simplification
---
 src/VCBackend.cpp |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp
index 01d546d..7f97455 100644
--- a/src/VCBackend.cpp
+++ b/src/VCBackend.cpp
@@ -1183,12 +1183,8 @@ void SVN::scanMaster()
        // vcstatus code is somewhat superflous,
        // until we want to implement read-only toggle for svn.
        vcstatus_ = NOLOCKING;
-       if (checkLockMode()) {
-               if (isLocked())
-                       vcstatus_ = LOCKED;
-               else
-                       vcstatus_ = UNLOCKED;
-       }
+       if (checkLockMode())
+               vcstatus_ = isLocked() ? LOCKED : UNLOCKED;
 }
 
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to