Skip to content

Commit 014b696

Browse files
committedJan 19, 2016
[processing] removed redundant code
1 parent f762380 commit 014b696

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
 

‎python/plugins/processing/algs/grass/GrassAlgorithm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,7 @@ def commandLineName(self):
493493
return 'grass:' + self.name[:self.name.find(' ')]
494494

495495
def checkBeforeOpeningParametersDialog(self):
496-
msg = GrassUtils.checkGrassIsInstalled()
497-
if msg is not None:
498-
return msg
496+
return GrassUtils.checkGrassIsInstalled()
499497

500498
def checkParameterValuesBeforeExecuting(self):
501499
name = self.commandLineName().replace('.', '_')[len('grass:'):]

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,7 @@ def commandLineName(self):
550550
return 'grass7:' + self.name[:self.name.find(' ')]
551551

552552
def checkBeforeOpeningParametersDialog(self):
553-
msg = Grass7Utils.checkGrass7IsInstalled()
554-
if msg is not None:
555-
return msg
553+
return Grass7Utils.checkGrass7IsInstalled()
556554

557555
def checkParameterValuesBeforeExecuting(self):
558556
if self.module:

0 commit comments

Comments
 (0)
Please sign in to comment.