Skip to content
Snippets Groups Projects
Commit 3ecf040e authored by Lamar Moore's avatar Lamar Moore
Browse files

Incorrect closing brace for eventbuffer creation

parent d38a0aa0
No related branches found
No related tags found
No related merge requests found
......@@ -584,18 +584,18 @@ void KafkaEventStreamDecoder::initLocalCaches(
eventBuffer = createBufferWorkspace<DataObjects::EventWorkspace>(
"EventWorkspace", static_cast<size_t>(spDetMsg->n_spectra()),
spDetMsg->spectrum()->data(), spDetMsg->detector_id()->data(), nudet);
}
// Load the instrument if possible but continue if we can't
if (!instName.empty()) {
loadInstrument<DataObjects::EventWorkspace>(instName, eventBuffer,
jsonGeometry);
if (rawMsgBuffer.empty()) {
eventBuffer->rebuildSpectraMapping();
}
} else {
g_log.warning(
"Empty instrument name received. Continuing without instrument");
// Load the instrument if possible but continue if we can't
if (!instName.empty()) {
loadInstrument<DataObjects::EventWorkspace>(instName, eventBuffer,
jsonGeometry);
if (rawMsgBuffer.empty()) {
eventBuffer->rebuildSpectraMapping();
}
} else {
g_log.warning(
"Empty instrument name received. Continuing without instrument");
}
auto &mutableRun = eventBuffer->mutableRun();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment