haikudepot: Fix style issues in hrev49418
This commit is contained in:
@@ -330,7 +330,7 @@ arguments_is_url_valid(const BString& value)
|
||||
|
||||
int32 schemeEnd = value.FindFirst("://");
|
||||
|
||||
if (schemeEnd == B_ERROR) {
|
||||
if (schemeEnd < B_OK) {
|
||||
fprintf(stderr, "the url does not contain the '://' string\n");
|
||||
return false;
|
||||
}
|
||||
@@ -356,9 +356,9 @@ arguments_is_url_valid(const BString& value)
|
||||
indicate if the URL was acceptable.
|
||||
\return B_OK if the base URL was valid and B_BAD_VALUE if not.
|
||||
*/
|
||||
|
||||
status_t
|
||||
WebAppInterface::SetBaseUrl(const BString& url) {
|
||||
WebAppInterface::SetBaseUrl(const BString& url)
|
||||
{
|
||||
if (!arguments_is_url_valid(url))
|
||||
return B_BAD_VALUE;
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ App::ArgvReceived(int32 argc, char* argv[])
|
||||
Quit();
|
||||
}
|
||||
|
||||
if (B_OK != WebAppInterface::SetBaseUrl(argv[i+1])) {
|
||||
if (WebAppInterface::SetBaseUrl(argv[i + 1]) != B_OK) {
|
||||
fprintf(stderr, "malformed web app base url; %s\n", argv[i + 1]);
|
||||
Quit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user