[PATCH 1/6] Remove return undef from validate_patch
- From
- Bill Pemberton <wfp5p@virginia.edu>
- Date
- Apr 29, 2009, 13:12 UTC
- Message-ID
- <1241010743-7020-2-git-send-email-wfp5p@virginia.edu>
- In-Reply-To
- <1241010743-7020-1-git-send-email-wfp5p@virginia.edu>
Returning undef is rarely the correct way to return a failure. Replace it with return 0
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> --- git-send-email.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl index cccbf45..4f62c59 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -1182,7 +1182,7 @@ sub validate_patch { return "$.: patch contains a line longer than 998 characters"; } } - return undef; + return 0; } sub file_has_nonascii {
-- 1.6.0.6