From bd2552f1bf88efc0bdec49fe3b5d396686b42aa4 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Fri, 5 Dec 2014 09:33:35 -0800 Subject: [PATCH] s/makeFuture().via/via/ Summary: codemod to replace all `makeFuture().via` with just `via`. Test Plan: contbuild Reviewed By: jsedgwick@fb.com Subscribers: trunkagent, zeus-diffs@, targeting-diff-backend@, abirchall, fugalh, msk, exa, benj, njormrod, folly-diffs@ FB internal diff: D1715876 Signature: t1:1715876:1417712302:b882916d394f90caa23bd73fa68b8f786af649e3 --- folly/wangle/test/FutureTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/wangle/test/FutureTest.cpp b/folly/wangle/test/FutureTest.cpp index eaae5da1..a068dc01 100644 --- a/folly/wangle/test/FutureTest.cpp +++ b/folly/wangle/test/FutureTest.cpp @@ -844,7 +844,7 @@ TEST(Future, viaActsCold) { ManualExecutor x; size_t count = 0; - auto fv = makeFuture().via(&x); + auto fv = via(&x); fv.then([&](Try&&) { count++; }); EXPECT_EQ(0, count); @@ -857,7 +857,7 @@ TEST(Future, viaActsCold) { TEST(Future, viaIsCold) { ManualExecutor x; - EXPECT_FALSE(makeFuture().via(&x).isActive()); + EXPECT_FALSE(via(&x).isActive()); } TEST(Future, viaRaces) { -- 2.34.1