Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Thampy <[email protected]>
  • Loading branch information
athampy committed Nov 25, 2019
1 parent ba59ed5 commit 2f1862c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/common/network/address_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ PipeInstance::PipeInstance(const sockaddr_un* address, socklen_t ss_len, mode_t
}
address_ = *address;
if (abstract_namespace_) {
if(mode != 0){
throw EnvoyException("Cannot set mode for Abstract AF_UNIX sockets");
if (mode != 0) {
throw EnvoyException("Cannot set mode for Abstract AF_UNIX sockets");
}
// Replace all null characters with '@' in friendly_name_.
friendly_name_ =
Expand Down Expand Up @@ -380,8 +380,8 @@ PipeInstance::PipeInstance(const std::string& pipe_path, mode_t mode) : Instance
#if !defined(__linux__)
throw EnvoyException("Abstract AF_UNIX sockets are only supported on linux.");
#endif
if(mode != 0){
throw EnvoyException("Cannot set mode for Abstract AF_UNIX sockets");
if (mode != 0) {
throw EnvoyException("Cannot set mode for Abstract AF_UNIX sockets");
}
abstract_namespace_ = true;
address_length_ = pipe_path.size();
Expand Down

0 comments on commit 2f1862c

Please sign in to comment.