Skip to content

Commit 38836df

Browse files
author
Brian Chen
committed
lint
1 parent 9fecaa6 commit 38836df

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "Firestore/core/src/core/key_field_in_filter.h"
1817
#include "Firestore/core/src/core/key_field_not_in_filter.h"
18+
#include "Firestore/core/src/core/key_field_in_filter.h"
1919

2020
#include <memory>
2121
#include <utility>
@@ -25,40 +25,40 @@
2525
#include "absl/algorithm/container.h"
2626

2727
namespace firebase {
28-
namespace firestore {
29-
namespace core {
28+
namespace firestore {
29+
namespace core {
3030

31-
using model::Document;
32-
using model::DocumentKey;
33-
using model::FieldPath;
34-
using model::FieldValue;
31+
using model::Document;
32+
using model::DocumentKey;
33+
using model::FieldPath;
34+
using model::FieldValue;
3535

36-
using Operator = Filter::Operator;
36+
using Operator = Filter::Operator;
3737

38-
class KeyFieldNotInFilter::Rep : public FieldFilter::Rep {
39-
public:
40-
Rep(FieldPath field, FieldValue value)
41-
: FieldFilter::Rep(std::move(field), Operator::NotIn, std::move(value)) {
42-
KeyFieldInFilter::ValidateArrayValue(this->value());
43-
}
38+
class KeyFieldNotInFilter::Rep : public FieldFilter::Rep {
39+
public:
40+
Rep(FieldPath field, FieldValue value)
41+
: FieldFilter::Rep(std::move(field), Operator::NotIn, std::move(value)) {
42+
KeyFieldInFilter::ValidateArrayValue(this->value());
43+
}
4444

45-
Type type() const override {
46-
return Type::kKeyFieldInFilter;
47-
}
45+
Type type() const override {
46+
return Type::kKeyFieldInFilter;
47+
}
4848

49-
bool Matches(const model::Document& doc) const override;
50-
};
49+
bool Matches(const model::Document& doc) const override;
50+
};
5151

52-
KeyFieldNotInFilter::KeyFieldNotInFilter(FieldPath field, FieldValue value)
53-
: FieldFilter(
54-
std::make_shared<const Rep>(std::move(field), std::move(value))) {
55-
}
52+
KeyFieldNotInFilter::KeyFieldNotInFilter(FieldPath field, FieldValue value)
53+
: FieldFilter(
54+
std::make_shared<const Rep>(std::move(field), std::move(value))) {
55+
}
5656

57-
bool KeyFieldNotInFilter::Rep::Matches(const Document& doc) const {
58-
const FieldValue::Array& array_value = value().array_value();
59-
return !KeyFieldInFilter::Contains(array_value, doc);
60-
}
57+
bool KeyFieldNotInFilter::Rep::Matches(const Document& doc) const {
58+
const FieldValue::Array& array_value = value().array_value();
59+
return !KeyFieldInFilter::Contains(array_value, doc);
60+
}
6161

62-
} // namespace core
63-
} // namespace firestore
62+
} // namespace core
63+
} // namespace firestore
6464
} // namespace firebase

Firestore/core/src/core/key_field_not_in_filter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

Firestore/core/src/core/not_in_filter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ class NotInFilter::Rep : public FieldFilter::Rep {
4747

4848
NotInFilter::NotInFilter(FieldPath field, FieldValue value)
4949
: FieldFilter(
50-
std::make_shared<const Rep>(std::move(field), std::move(value))) {
50+
std::make_shared<const Rep>(std::move(field), std::move(value))) {
5151
}
5252

5353
bool NotInFilter::Rep::Matches(const Document& doc) const {

Firestore/core/src/core/not_in_filter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)