[Bps-public-commit] r16777 - Prophet/trunk/lib/Prophet
jesse at bestpractical.com
jesse at bestpractical.com
Sat Nov 8 23:58:54 EST 2008
Author: jesse
Date: Sat Nov 8 23:58:53 2008
New Revision: 16777
Modified:
Prophet/trunk/lib/Prophet/Server.pm
Log:
* avoid a warning when the content file just doesn't exist
Modified: Prophet/trunk/lib/Prophet/Server.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Server.pm (original)
+++ Prophet/trunk/lib/Prophet/Server.pm Sat Nov 8 23:58:53 2008
@@ -101,7 +101,7 @@
return undef unless $self->handle->can('read_file');
my $content = $self->handle->read_file($repo_file);
- return unless length($content);
+ return unless defined $content && length($content);
return $self->_send_content(
content_type => 'application/x-prophet',
content => $content
More information about the Bps-public-commit
mailing list