haikudepot: Fix style issues in hrev49418

This commit is contained in:
Alexander von Gluck IV
2015-07-19 09:56:54 -05:00
parent d52bb3081c
commit e34f263837
2 changed files with 14 additions and 14 deletions
@@ -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;
+1 -1
View File
@@ -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();
}