diff --git a/impeller/renderer/pool.h b/impeller/renderer/pool.h index c64d0aae7734c..c381d96d989e3 100644 --- a/impeller/renderer/pool.h +++ b/impeller/renderer/pool.h @@ -14,11 +14,10 @@ class Pool { std::shared_ptr Grab() { if (pool_.empty()) { return T::Create(); - } else { - std::shared_ptr result = pool_.back(); - pool_.pop_back(); - return result; } + std::shared_ptr result = pool_.back(); + pool_.pop_back(); + return result; } void Recycle(std::shared_ptr object) {