@@ -199,29 +199,25 @@ constexpr struct
199199 if (it == end || *it != ' (' )
200200 return " " ;
201201 if (it == end)
202- BOOST_BEAST2_RETURN_EC (
203- grammar::error::syntax);
202+ return grammar::error::syntax;
204203 auto it0 = it;
205204 it = grammar::find_if_not (
206205 it, end, constraint_char{});
207206 if (it - it0 <= 1 )
208207 {
209208 // too small
210209 it = it0;
211- BOOST_BEAST2_RETURN_EC (
212- grammar::error::syntax);
210+ return grammar::error::syntax;
213211 }
214212 if (it == end)
215213 {
216214 it = it0;
217- BOOST_BEAST2_RETURN_EC (
218- grammar::error::syntax);
215+ return grammar::error::syntax;
219216 }
220217 if (*it != ' )' )
221218 {
222219 it0 = it;
223- BOOST_BEAST2_RETURN_EC (
224- grammar::error::syntax);
220+ return grammar::error::syntax;
225221 }
226222 return core::string_view (++it0, it++);
227223 }
@@ -238,11 +234,9 @@ constexpr struct
238234 system::result<value_type>
239235 {
240236 if (it == end)
241- BOOST_BEAST2_RETURN_EC (
242- grammar::error::syntax);
237+ return grammar::error::syntax;
243238 if (! grammar::alpha_chars (*it))
244- BOOST_BEAST2_RETURN_EC (
245- grammar::error::syntax);
239+ return grammar::error::syntax;
246240 auto it0 = it++;
247241 it = grammar::find_if_not (
248242 it, end, ident_char{});
@@ -276,11 +270,9 @@ struct param_segment_rule_t
276270 system::result<value_type>
277271 {
278272 if (it == end)
279- BOOST_BEAST2_RETURN_EC (
280- grammar::error::syntax);
273+ return grammar::error::syntax;
281274 if (*it != ' :' && *it != ' *' )
282- BOOST_BEAST2_RETURN_EC (
283- grammar::error::mismatch);
275+ return grammar::error::mismatch;
284276 value_type v;
285277 v.ptype = *it++;
286278 {
0 commit comments