[diffoscope] 02/04: comparators.utils.file: Avoid some necessary indentation around unconditional control flow.

Chris Lamb chris at chris-lamb.co.uk
Thu Mar 1 23:50:47 CET 2018


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit c1d2d18046b54816d3b80c26dd66f779fc0f13ca
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Mar 1 22:27:38 2018 +0000

    comparators.utils.file: Avoid some necessary indentation around unconditional control flow.
---
 diffoscope/comparators/utils/file.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/diffoscope/comparators/utils/file.py b/diffoscope/comparators/utils/file.py
index e22ecd6..e3abb6a 100644
--- a/diffoscope/comparators/utils/file.py
+++ b/diffoscope/comparators/utils/file.py
@@ -410,5 +410,4 @@ class File(object, metaclass=abc.ABCMeta):
 def maybe_decode(s):
     if type(s) is bytes:
         return s.decode('utf-8')
-    else:
-        return s
+    return s

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list