Permalink
Browse files

don't show contents if there isn't any

  • Loading branch information...
1 parent 4399b6d commit e0c02750325b40cf493e1a7e03ebe6f8de5cea67 @masak committed Jul 24, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 crypt.pl
View
@@ -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}.";
+ }
}
}

0 comments on commit e0c0275

Please sign in to comment.