We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.at()
operator[]
1 parent 35d684e commit c3f616bCopy full SHA for c3f616b
cpp/MarkdownGlobal.cpp
@@ -36,9 +36,7 @@ void unregisterMarkdownWorklet(const int parserId) {
36
37
std::shared_ptr<ShareableWorklet> getMarkdownWorklet(const int parserId) {
38
std::unique_lock<std::mutex> lock(globalMarkdownShareableWorkletsMutex);
39
- const auto &worklet = globalMarkdownShareableWorklets[parserId];
40
- assert(worklet != nullptr);
41
- return worklet;
+ return globalMarkdownShareableWorklets.at(parserId);
42
}
43
44
} // namespace livemarkdown
0 commit comments