From 71bb4b94d866d29d4aefec953262a95e94b13ccd Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Wed, 5 Nov 2008 11:20:55 +0000 Subject: [PATCH] Small refactoring --- tools/capone/src/capone-doc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/capone/src/capone-doc b/tools/capone/src/capone-doc index b09caaf..c370daf 100755 --- a/tools/capone/src/capone-doc +++ b/tools/capone/src/capone-doc @@ -77,10 +77,10 @@ sub main { $in_block = 0; $filename = $ARGV[0]; - if($ARGV[1] eq "") { - $title = $filename . " documentation"; - } else { + if($ARGV[1]) { $title = $ARGV[1]; + } else { + $title = $filename . " documentation"; } open(INFILE, $filename) or die "Can't open $filename: $!";