aboutsummaryrefslogtreecommitdiff
path: root/sbofind
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-06-11 23:05:21 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-06-11 23:05:21 -0500
commit8dfe0461d5e4ae3ef31c0a01a9cc04e7334a458c (patch)
treed9c78b0077beb355f19075614759074b1ecc09b2 /sbofind
parent3fe7112f8c96478a55eeebe0d63665c1435c5dda (diff)
downloadsbotools2-8dfe0461d5e4ae3ef31c0a01a9cc04e7334a458c.tar.xz
bunch more code reductions and stuff
Diffstat (limited to 'sbofind')
-rwxr-xr-xsbofind4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbofind b/sbofind
index 089c4cd..a4b5801 100755
--- a/sbofind
+++ b/sbofind
@@ -66,8 +66,8 @@ FIRST: while (my $line = <$fh>) {
}
sub get_file_contents {
- script_error ('get_file_contents requires an argument') unless exists $_[0];
- script_error ('get_file_contents argument is not a file') unless -f $_[0];
+ exists $_[0] or script_error ('get_file_contents requires an argument');
+ -f $_[0] or script_error ('get_file_contents argument is not a file');
my $fh = open_read (shift);
my $contents = do {local $/; <$fh>};
$contents =~ s/\n/\n /g;