Skip to content

Commit b719493

Browse files
committed
Removed unnecessary function
1 parent 89ff07e commit b719493

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ClipboardMonitor/PasteGuardWrapper.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ public PasteGuardWrapper()
1717
public static void NotifyPasteGuard(ProcessSummary processSummary, string content)
1818
{
1919
var masked =
20-
content.Length > 200 ? MaskPayload(content.Substring(0, 200)) : MaskPayload(content);
20+
content.Length > 200 ? PANHelper.Mask(content.Substring(0, 200)) : PANHelper.Mask(content);
2121
PasteGuard.SetSuspiciousActivityContent(processSummary, masked);
2222
}
2323

2424
public void Dispose() => PasteGuard.Remove();
2525

26-
private static string MaskPayload(string payload) => PANHelper.Mask(payload);
27-
2826
private void WarningAction(ProcessSummary processSummary, string content)
2927
{
3028
Task.Run(() =>

0 commit comments

Comments
 (0)