diff options
author | Geir Storli <geirst@verizonmedia.com> | 2020-06-10 19:56:49 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2020-06-10 19:56:49 +0000 |
commit | e3dd8d14c4f28e02d32849ef2cdf9b2a8aaaf404 (patch) | |
tree | 9773e318e9f872609daea21ce80ee24576a483e3 /searchcore | |
parent | e23f73971dc3e5ec8b1b6431837941e671603338 (diff) |
Simplify.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/tests/proton/attribute/attribute_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp index 7dc8ea1dccd..6284fe119c4 100644 --- a/searchcore/src/tests/proton/attribute/attribute_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp @@ -138,9 +138,7 @@ public: } ~AttributeWriterTest(); void setup(uint32_t threads) { - if (_aw) { - _aw.reset(); - } + _aw.reset(); _attributeFieldWriterReal = std::make_unique<ForegroundTaskExecutor>(threads); _attributeFieldWriter = std::make_unique<SequencedTaskExecutorObserver>(*_attributeFieldWriterReal); _m = std::make_shared<proton::AttributeManager>(test_dir, "test.subdb", TuneFileAttributes(), |