Skip to content

Commit

Permalink
fix errors for nullable attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Nov 3, 2024
1 parent cbef4ff commit c2a95aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sherpa-onnx/csrc/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@
#define SHERPA_ONNX_READ_META_DATA_STR_ALLOW_EMPTY(dst, src_key) \
do { \
auto value = LookupCustomModelMetaData(meta_data, src_key, allocator); \
if (value.empty()) { \
SHERPA_ONNX_LOGE("'%s' does not exist in the metadata", src_key); \
exit(-1); \
} \
\
dst = std::move(value); \
} while (0)
Expand Down

0 comments on commit c2a95aa

Please sign in to comment.