<br><br><div class="gmail_quote">On Tue, Nov 4, 2008 at 1:27 AM, Gavin Carr <span dir="ltr"><<a href="mailto:gavin@openfusion.com.au">gavin@openfusion.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Mon, Nov 03, 2008 at 10:08:04PM -0800, Brad Fitzpatrick wrote:<br>
> Just code style. Rest of project uses style:<br>
> } else {<br>
><br>
> Braces on same line.<br>
><br>
> Also, no need for explicit string concat here:<br>
><br>
> die "nothing found matching '" . $self->{prefix} . "'.\n";<br>
><br>
> Just interoplate it. The ifs are very C-ish too. You could just do:<br>
><br>
> die "Nothing found matching $self->{prefix}.\n" if $self->{prefix};<br>
> die "Nothing found to restore. (empty .meta file?)\n";<br>
<br>
</div>Cool, all adjusted.<br>
<div class="Ih2E3d"><br>
> (also note capitalized sentences in error messages.)<br>
<br>
</div>Yep, although the dies here are caught and rethrown by brackup-restore,<br>
and I thought the lowercase version looked slightly better:<br>
<br>
Error doing restore: nothing found matching 'foobar'.<br>
<br>
vs.<br>
<br>
Error doing restore: Nothing found matching 'foobar'.<br>
<br>
I don't really care though - which do you prefer?</blockquote><div><br></div><div>Oh, the former's nice. Either way.</div><div><br></div><div><br></div></div>