Skip to content

Commit

Permalink
changed as suggested by csukuangfj
Browse files Browse the repository at this point in the history
  • Loading branch information
jingzhaoou committed Jul 28, 2023
1 parent 7f88340 commit f7c6545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sherpa-onnx/csrc/hypothesis.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ struct Hypothesis {
std::string Key() const {
// TODO(fangjun): Use a hash function?
std::ostringstream os;
std::string sep = "";
std::string sep;
for (auto i : ys) {
os << sep << i;
if (sep.empty()) { sep = "-"; }
sep = "-";
}
return os.str();
}
Expand Down

0 comments on commit f7c6545

Please sign in to comment.