13 # go-code: Return ctx.Err() directly.
15 - "(context.Context).Err() error"
18 # go-code: A function with one error path can return it directly.
19 - linters: [wrapcheck]
21 source: 'return r\.file\.Close\(\)'
22 - linters: [wrapcheck]
24 source: 'return os\.Truncate\('
25 - linters: [wrapcheck]
26 path: ^sync_buffer_helper_test\.go$
27 source: 'return b\.buffer\.Write\('
28 - linters: [wrapcheck]
30 source: 'return s\.inner\.Summarize\('
31 - linters: [wrapcheck]
33 source: 'return false, err'
34 - linters: [wrapcheck]
36 text: 'sqlstore\.Container\)\.Close\('