Skip to content

Commit

Permalink
don't show contents if there isn't any
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Jul 24, 2011
1 parent 4399b6d commit e0c0275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crypt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ ()
}

method on_open {
say "Opening the $.name reveals a {join " and a ", @.contents}.";
if @.contents {
say "Opening the $.name reveals a {join " and a ", @.contents}.";
}
}
}

Expand Down

0 comments on commit e0c0275

Please sign in to comment.