Skip to content

Commit a29e352

Browse files
committed
optimize code
1 parent a0ced3d commit a29e352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paddle/fluid/operators/detail/variable_response.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class VariableResponse {
4646
}
4747

4848
virtual ~VariableResponse() {
49-
if (create_scope_) scope_->DeleteScope(local_scope_);
49+
if (create_scope_) {
50+
scope_->DeleteScope(local_scope_);
51+
}
5052
}
5153

5254
// return:

0 commit comments

Comments
 (0)