Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf committed Feb 11, 2024
1 parent 584aa59 commit f17ebbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rime/dict/dict_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ bool DictCompiler::Compile(const path& schema_file) {
}
syllabary = std::move(collector.syllabary);
} else if (packs_.size() > 0) {
primary_table->Load();
if (!tables_[0]->GetSyllabary(&syllabary))
if (primary_table->Load() && primary_table->GetSyllabary(&syllabary))
primary_table->Close();
else
LOG(WARNING) << "couldn't load syllabary from '" << schema_file << "'";
primary_table->Close();
}
if (rebuild_prism &&
!BuildPrism(schema_file, dict_file_checksum, schema_file_checksum)) {
Expand Down

0 comments on commit f17ebbf

Please sign in to comment.