Permalink
Browse files

[web/mkjson.p6] reads README only if it exists

  • Loading branch information...
1 parent e675c28 commit 35ec4f2352837ff6b48a8c0ab81ac122b5577a0b @sergot committed Sep 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/mkjson.p6
View
@@ -54,7 +54,7 @@ class Project {
my $readme_file = readme_file($!path);
$!readme = $readme_file ?? $!URL~"/blob/master/"~$readme_file !! False;
- $!readme_content = slurp "$!path/$readme_file";
+ $!readme_content = slurp "$!path/$readme_file" if $readme;
}
sub readme_file(Str $path) {

0 comments on commit 35ec4f2

Please sign in to comment.