Skip to content

Commit f2a5e33

Browse files
committed
Cleanup
1 parent ba7318d commit f2a5e33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/tao/json/internal/grammar.hh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)