[pitivi] Fix pylint simplifiable-if-statement



commit b60adf28cc8721e5e8081c0a612ff48a67e4ec54
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Nov 1 07:18:52 2019 +0100

    Fix pylint simplifiable-if-statement

 pitivi/project.py | 5 +----
 pre-commit.hook   | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 867260d0..2cb9d77b 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -331,10 +331,7 @@ class ProjectManager(GObject.Object, Loggable):
 
         response = dialog.run()
         dialog.destroy()
-        if response == Gtk.ResponseType.YES:
-            return True
-        else:
-            return False
+        return response == Gtk.ResponseType.YES
 
     def saveProject(self, uri=None, formatter_type=None, backup=False):
         """Saves the current project.
diff --git a/pre-commit.hook b/pre-commit.hook
index 14c95f18..3a2bb6ad 100755
--- a/pre-commit.hook
+++ b/pre-commit.hook
@@ -16,7 +16,6 @@ bin/pitivi.in
 pitivi/autoaligner.py
 pitivi/effects.py
 pitivi/medialibrary.py
-pitivi/project.py
 pitivi/timeline/elements.py
 pitivi/timeline/timeline.py
 pitivi/utils/extract.py


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