File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
include/tao/json/internal Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,10 @@ namespace tao
6868 result = true ;
6969 continue ;
7070 }
71- return result;
7271 }
7372 return result;
7473 }
75- return result; // LCOV_EXCL_LINE -- The rest of the grammar prevents this line from ever being called.
74+ throw std::logic_error ( " code should be unreachable " ); // LCOV_EXCL_LINE
7675 }
7776 };
7877
@@ -126,7 +125,7 @@ namespace tao
126125 case ' n' : return Control< null >::template match< A, Action, Control >( in, st ... );
127126 case ' t' : return Control< true_ >::template match< A, Action, Control >( in, st ... );
128127 case ' f' : return Control< false_ >::template match< A, Action, Control >( in, st ... );
129- default : return Control< number >::template match< A, Action, Control >( in, st ... );
128+ default : return Control< number >::template match< A, Action, Control >( in, st ... );
130129 }
131130 }
132131 };
You can’t perform that action at this time.
0 commit comments