Disables AtomicLinkedList parallel test case
[folly.git] / folly / futures / FutureSplitter.h
index b189d44aadd87cef8db11ea6cc12d9f547af4a3a..6e6cc7ce5503904cfdd91a449da0796c5a2b6366 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2017-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -55,8 +55,8 @@ class FutureSplitter {
    * This can be called an unlimited number of times per FutureSplitter.
    */
   Future<T> getFuture() {
-    if (UNLIKELY(promise_ == nullptr)) {
-      throw NoFutureInSplitter();
+    if (promise_ == nullptr) {
+      throwNoFutureInSplitter();
     }
     return promise_->getFuture();
   }
@@ -73,4 +73,4 @@ template <class T>
 FutureSplitter<T> splitFuture(Future<T>&& future) {
   return FutureSplitter<T>{std::move(future)};
 }
-}
+} // namespace folly