summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/resource_pattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/resource_pattern.cpp')
-rw-r--r--src/mongo/db/auth/resource_pattern.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/auth/resource_pattern.cpp b/src/mongo/db/auth/resource_pattern.cpp
index 6bf23368327..fe62ced9ca9 100644
--- a/src/mongo/db/auth/resource_pattern.cpp
+++ b/src/mongo/db/auth/resource_pattern.cpp
@@ -38,8 +38,8 @@
namespace mongo {
- std::string ResourcePattern::toString() const {
- switch (_matchType) {
+std::string ResourcePattern::toString() const {
+ switch (_matchType) {
case matchNever:
return "<no resources>";
case matchClusterResource:
@@ -56,11 +56,11 @@ namespace mongo {
return "<all resources>";
default:
return "<unknown resource pattern type>";
- }
}
+}
- std::ostream& operator<<(std::ostream& os, const ResourcePattern& pattern) {
- return os << pattern.toString();
- }
+std::ostream& operator<<(std::ostream& os, const ResourcePattern& pattern) {
+ return os << pattern.toString();
+}
} // namespace mongo