@@ -96,7 +96,7 @@ operation_status apply::process_record(abstract::task_context* context) {
9696
9797operation_status apply::operator ()(apply_context& ctx, abstract::task_context* context) { // NOLINT(readability-function-cognitive-complexity)
9898 if (ctx.aborted ()) {
99- return { operation_status_kind::aborted} ;
99+ return operation_status_kind::aborted;
100100 }
101101
102102 // setup evaluator context blob session once per record
@@ -108,7 +108,7 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
108108 ctx.args_ .reserve (argument_evaluators_.size ());
109109 if (! evaluate_arguments (ctx, ctx.args_ )) {
110110 ctx.abort ();
111- return { operation_status_kind::aborted} ;
111+ return operation_status_kind::aborted;
112112 }
113113
114114 // call table-valued function
@@ -120,7 +120,7 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
120120 status::err_unknown
121121 );
122122 ctx.abort ();
123- return { operation_status_kind::aborted} ;
123+ return operation_status_kind::aborted;
124124 }
125125
126126 auto stream = function_info_->function_body ()(
@@ -142,7 +142,7 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
142142 status::err_expression_evaluation_failure
143143 );
144144 ctx.abort ();
145- return { operation_status_kind::aborted} ;
145+ return operation_status_kind::aborted;
146146 }
147147
148148 // synchronously collect all results
@@ -171,7 +171,7 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
171171 }
172172 stream->close ();
173173 ctx.abort ();
174- return { operation_status_kind::aborted} ;
174+ return operation_status_kind::aborted;
175175 }
176176
177177 if (status == data::any_sequence_stream_status::ok) {
@@ -180,7 +180,7 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
180180 if (! assign_sequence_to_variables (ctx, sequence)) {
181181 stream->close ();
182182 ctx.abort ();
183- return { operation_status_kind::aborted} ;
183+ return operation_status_kind::aborted;
184184 }
185185 ctx.has_output_ = true ;
186186
@@ -189,7 +189,7 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
189189 if (auto st = unsafe_downcast<record_operator>(downstream_.get ())->process_record (context); ! st) {
190190 stream->close ();
191191 ctx.abort ();
192- return { operation_status_kind::aborted} ;
192+ return operation_status_kind::aborted;
193193 }
194194 }
195195 }
@@ -203,13 +203,13 @@ operation_status apply::operator()(apply_context& ctx, abstract::task_context* c
203203 if (auto st = unsafe_downcast<record_operator>(downstream_.get ())->process_record (context); ! st) {
204204 stream->close ();
205205 ctx.abort ();
206- return { operation_status_kind::aborted} ;
206+ return operation_status_kind::aborted;
207207 }
208208 }
209209 }
210210
211211 stream->close ();
212- return {} ;
212+ return operation_status_kind::ok ;
213213}
214214
215215operator_kind apply::kind () const noexcept {
0 commit comments