Skip to content

Commit 15de909

Browse files
author
Stanislav (Stas) Katkov
committed
simplify internal/clipboard testing
1 parent 3f8be9b commit 15de909

File tree

2 files changed

+1
-250
lines changed

2 files changed

+1
-250
lines changed

internal/clipboard/clipboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ func enhanceError(originalErr error, operation string) error {
4949
helpMsg = `clipboard manager was not found on this system`
5050
}
5151

52-
return fmt.Errorf("clipboard %s failed: %w%s", operation, originalErr, helpMsg)
52+
return fmt.Errorf("clipboard %s failed: %s", operation, helpMsg)
5353
}

internal/clipboard/clipboard_test.go

Lines changed: 0 additions & 249 deletions
This file was deleted.

0 commit comments

Comments
 (0)