Skip to content

Commit b1fcbfc

Browse files
committed
Fix lint issues
1 parent 1740131 commit b1fcbfc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clipboard_unix.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func readAll(ctx context.Context) ([]byte, error) {
158158
if w.trimDOS && len(result) > 1 {
159159
result = result[:len(result)-2]
160160
}
161+
161162
return result, nil
162163
}
163164

@@ -190,6 +191,7 @@ func writeAll(ctx context.Context, text []byte, secret bool) error {
190191
if err := copyCmd.Wait(); err != nil {
191192
return fmt.Errorf("failed to wait for command: %w", err)
192193
}
194+
193195
return nil
194196
}
195197

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func Example() {
11-
clipboard.WriteAllString(context.TODO(), "日本語") //nolint:errcheck
11+
clipboard.WriteAllString(context.TODO(), "日本語") //nolint:errcheck
1212
text, _ := clipboard.ReadAllString(context.TODO()) //nolint:errcheck
1313
fmt.Println(text)
1414

0 commit comments

Comments
 (0)