Skip to content

Commit

Permalink
Typo :/
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Aug 20, 2024
1 parent 1f00931 commit 693acc3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Protest/Workers/Issues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ public struct Issue {
public string target;
public string category;
public string source;
public bool isUser;
public bool isUser;
public string file;
public long timestamp;
public long timestamp;
}

private static TaskWrapper task;
private static ConcurrentBag<Issue> issues = new ConcurrentBag<Issue>();

public static byte[] ToLiveStatsJsonBytes(this Issue issue) => JsonSerializer.SerializeToUtf8Bytes(new Dictionary<string, string> {
{ issue.severity.ToString(), issue.message },
{ "target", issue.target },
{ "source", issue.source },
{ "target", issue.target },
{ "source", issue.source },
});

public static byte[] List() {
Expand Down Expand Up @@ -301,14 +301,14 @@ public static bool CheckDiskCapacity(string file, string target, double percent,
return false;
}

public static bool CheckPrinterComponent(Database.Entry entry, out Issue[] issuse) {
public static bool CheckPrinterComponent(Database.Entry entry, out Issue[] issues) {
if (!entry.attributes.TryGetValue("snmp profile", out Database.Attribute snmpGuidAttribute)) {
issuse = null;
issues = null;
return false;
}

if (!SnmpProfiles.FromGuid(snmpGuidAttribute.value, out SnmpProfiles.Profile profile)) {
issuse = null;
issues = null;
return false;
}

Expand All @@ -324,16 +324,16 @@ public static bool CheckPrinterComponent(Database.Entry entry, out Issue[] issus
}

if (targetsArray.Length == 0) {
issuse = null;
issues = null;
return false;
}

if (!IPAddress.TryParse(targetsArray[0], out IPAddress ipAddress)) {
issuse = null;
issues = null;
return false;
}

return CheckPrinterComponent(entry.filename, ipAddress, profile, out issuse);
return CheckPrinterComponent(entry.filename, ipAddress, profile, out issues);
}

public static bool CheckPrinterComponent(string file, IPAddress ipAddress, SnmpProfiles.Profile profile, out Issue[] issues) {
Expand Down

0 comments on commit 693acc3

Please sign in to comment.