Skip to content

Commit 8c02982

Browse files
committed
remove exception from Slice.tagOffset
1 parent b468a44 commit 8c02982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/velocypack/Slice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ class Slice {
10741074
}
10751075

10761076
constexpr uint8_t tagOffset(uint8_t const* _start) const {
1077-
return SliceStaticData::TypeMap[*_start] == ValueType::Tagged ? (*_start == 0xee ? 2 : (*_start == 0xef ? 9 : throw new Exception(Exception::InternalError, "Invalid tag type ID"))) : 0;
1077+
return SliceStaticData::TypeMap[*_start] == ValueType::Tagged ? (*_start == 0xee ? 2 : (*_start == 0xef ? 9 : 0)) : 0;
10781078
}
10791079

10801080
// get the total byte size for the slice, including the head byte

0 commit comments

Comments
 (0)