-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
| namespace { | ||
|
|
||
| json::value ReadCredentials(const std::string& credentials_file) throw(json::Exception) { | ||
| class NoCredentials { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spacing for this class seems unusual. Is that on purpose? Also, how about naming this NoCredentialsException?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just an informational class to convey a specific (non-exceptional) status. The code catches and ignores it, modulo info logging.
What's unusual about the spacing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per conversation offline, this is the expected formatting. public and private should have one-space indentation per convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference: https://google.github.io/styleguide/cppguide.html#Class_Format.
qingling128
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
| namespace { | ||
|
|
||
| json::value ReadCredentials(const std::string& credentials_file) throw(json::Exception) { | ||
| class NoCredentials { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per conversation offline, this is the expected formatting. public and private should have one-space indentation per convention.
bmoyles0117
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
No description provided.