[lintian] 01/01: lintian: Remove a bit of code duplication
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit b7fb4652ce0989eedc5bb8f1a155f50138d958c1
Author: Niels Thykier <niels@thykier.net>
Date: Tue Apr 15 22:29:22 2014 +0200
lintian: Remove a bit of code duplication
Signed-off-by: Niels Thykier <niels@thykier.net>
---
frontend/lintian | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/frontend/lintian b/frontend/lintian
index be4df12..4ae75f4 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -260,10 +260,7 @@ sub record_check_part {
'both -C or --check-part and -X',
'or --dont-check-part options not allowed'));
}
- if ($action) {
- die("too many actions specified: $_[0]");
- }
- $action = 'check';
+ record_action('check');
$checks = "$_[1]";
return;
}
@@ -281,10 +278,7 @@ sub record_check_tags {
die('both -T or --tags and -X or --dont-check-part options not allowed'
);
}
- if ($action) {
- die("too many actions specified: $_[0]");
- }
- $action = 'check';
+ record_action('check');
$check_tags = "$_[1]";
return;
}
@@ -345,10 +339,7 @@ sub record_dont_check_part {
'both -C or --check-part and',
'-X or --dont-check-part options not allowed'));
}
- if ($action) {
- die("too many actions specified: $_[0]");
- }
- $action = 'check';
+ record_action('check');
$dont_check = "$_[1]";
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: