From a29e352b80ed6fe11c4f5234db550532e3df09be Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 23 Apr 2018 19:03:44 +0800 Subject: [PATCH] optimize code --- paddle/fluid/operators/detail/variable_response.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/detail/variable_response.h b/paddle/fluid/operators/detail/variable_response.h index 59a92f715..8c05e60ce 100644 --- a/paddle/fluid/operators/detail/variable_response.h +++ b/paddle/fluid/operators/detail/variable_response.h @@ -46,7 +46,9 @@ class VariableResponse { } virtual ~VariableResponse() { - if (create_scope_) scope_->DeleteScope(local_scope_); + if (create_scope_) { + scope_->DeleteScope(local_scope_); + } } // return: -- GitLab