mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-05 15:09:26 +00:00
Add //nolint: gomnd to peer.Log context
This commit is contained in:
parent
8fd8b8f748
commit
6a063b6e7b
|
@ -89,7 +89,7 @@ func (w *LineWriter) Write(p []byte) (n int, err error) {
|
|||
Line: w.num,
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) //nolint: gomnd
|
||||
defer cancel()
|
||||
|
||||
if err := w.peer.Log(ctx, line); err != nil {
|
||||
|
|
Loading…
Reference in a new issue