Skip to content

Commit bf0a592

Browse files
committed
more sonar cloud sugestions
Signed-off-by: Neil South <[email protected]>
1 parent 56c76cb commit bf0a592

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Api/Hl7ApplicationConfigEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public override string ToString()
116116
}
117117

118118
//string key, string value
119-
public class StringKeyValuePair : IKeyValuePair<string, string>
119+
public sealed class StringKeyValuePair : IKeyValuePair<string, string>
120120
{
121121
[Key]
122122
public string Key { get; set; } = string.Empty;
@@ -138,7 +138,7 @@ public static List<StringKeyValuePair> FromDictionary(Dictionary<string, string>
138138

139139
}
140140

141-
public class DataKeyValuePair : IKeyValuePair<string, DataLinkType>
141+
public sealed class DataKeyValuePair : IKeyValuePair<string, DataLinkType>
142142
{
143143
[Key]
144144
public string Key { get; set; } = string.Empty;

src/InformaticsGateway/Services/Common/InputHL7DataPlugInEngine.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public async Task<Tuple<Message, FileStorageMetadata>> ExecutePlugInsAsync(Messa
5454

5555
foreach (var plugin in _plugsins)
5656
{
57-
var nm = plugin.ToString();
5857
if (configItem is not null && configItem.PlugInAssemblies.Exists(a => a.StartsWith(plugin.ToString()!)))
5958
{
6059
_logger.ExecutingInputDataPlugIn(plugin.Name);

src/InformaticsGateway/Services/HealthLevel7/MllpService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal sealed class MllpService : IMllpService, IHostedService, IDisposable, I
6262
private readonly IMllpExtract _mIIpExtract;
6363
private readonly IInputHL7DataPlugInEngine _inputHL7DataPlugInEngine;
6464
private readonly IHl7ApplicationConfigRepository _hl7ApplicationConfigRepository;
65-
private DateTime _lastConfigRead = new DateTime(2000, 1, 1);
65+
private DateTime _lastConfigRead = new(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc);
6666

6767
public int ActiveConnections
6868
{

0 commit comments

Comments
 (0)