Skip to content

Commit 8f0edcd

Browse files
committed
wrong branch on positive case
1 parent 378293c commit 8f0edcd

File tree

1 file changed

+1
-2
lines changed
  • Wissance.MossbauerLab.Watcher/Wissance.MossbauerLab.Watcher.Services/Notification

1 file changed

+1
-2
lines changed

Wissance.MossbauerLab.Watcher/Wissance.MossbauerLab.Watcher.Services/Notification/TelegramNotifier.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ private Message CreateMessageFromTemplate(IList<SpectrumReadyData> spectra)
5353
if (!_templateManager.Templates.ContainsKey(SpectrometerEvent.SpectrumSaved))
5454
throw new InvalidDataException("Expected that key \"SpectrometerEvent.SpectrumSaved\" present in _templates, actually not");
5555
string template;
56-
bool spectraIsEmpty = !spectra.Any();
57-
if (spectraIsEmpty)
56+
if (spectra.Any())
5857
{
5958
template = _templateManager.Templates[SpectrometerEvent.SpectrumSaved].PositiveCase;
6059
}

0 commit comments

Comments
 (0)