We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 378293c commit 8f0edcdCopy full SHA for 8f0edcd
Wissance.MossbauerLab.Watcher/Wissance.MossbauerLab.Watcher.Services/Notification/TelegramNotifier.cs
@@ -53,8 +53,7 @@ private Message CreateMessageFromTemplate(IList<SpectrumReadyData> spectra)
53
if (!_templateManager.Templates.ContainsKey(SpectrometerEvent.SpectrumSaved))
54
throw new InvalidDataException("Expected that key \"SpectrometerEvent.SpectrumSaved\" present in _templates, actually not");
55
string template;
56
- bool spectraIsEmpty = !spectra.Any();
57
- if (spectraIsEmpty)
+ if (spectra.Any())
58
{
59
template = _templateManager.Templates[SpectrometerEvent.SpectrumSaved].PositiveCase;
60
}
0 commit comments