Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up argument checking style to read more naturally

  • Loading branch information...
commit cdc23b58fce164ca1f6bc0affbc6da22b6db224c 1 parent 049f617
@tsibley tsibley authored
Showing with 4 additions and 9 deletions.
  1. +4 −9 lib/App/RecordStream/Operation/join.pm
View
13 lib/App/RecordStream/Operation/join.pm
@@ -32,16 +32,11 @@ sub init {
$this->parse_options($args, $spec);
- if ( ! @$args ) {
- die("You must provide inputkey");
- }
-
- my $inputkey = shift @$args;
-
- die("You must provide dbkey") unless (@$args);
-
- my $dbkey = shift @$args;
+ my $inputkey = shift @$args
+ or die "You must provide inputkey\n";
+ my $dbkey = shift @$args
+ or die "You must provide dbkey\n";
my $dbfile = shift @$args
or die "You must provide dbfile\n";
Please sign in to comment.
Something went wrong with that request. Please try again.