Skip to content

Commit

Permalink
beautify: clang-format of some files
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Sep 5, 2018
1 parent 6aed341 commit dc1cc10
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/dird/authenticate.cc
Expand Up @@ -127,9 +127,7 @@ bool AuthenticateWithStorageDaemon(JobControlRecord *jcr, StorageResource *store
*/
bool AuthenticateWithFileDaemon(JobControlRecord *jcr)
{
if (jcr->authenticated) {
return true;
}
if (jcr->authenticated) { return true; }

std::string qualified_resource_name;
if (!my_config->GetQualifiedResourceNameTypeConverter()->ResourceToString(me->hdr.name, my_config->r_own_,
Expand All @@ -138,9 +136,9 @@ bool AuthenticateWithFileDaemon(JobControlRecord *jcr)
return false;
}

ClientResource *client = jcr->res.client;
ClientResource *client = jcr->res.client;
TlsResource *tls_configuration = dynamic_cast<TlsResource *>(client);
BareosSocket *fd = jcr->file_bsock;
BareosSocket *fd = jcr->file_bsock;

if (!fd->DoTlsHandshake(4, tls_configuration, false, qualified_resource_name.c_str(), client->password.value,
jcr)) {
Expand Down

0 comments on commit dc1cc10

Please sign in to comment.