Fix ignore of Using a deprecated function, variable, constant or field (SA1019)

Signed-off-by: Jan Rodák <hony.com@seznam.cz>

Improve explanation of ignore deprecated code

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
This commit is contained in:
Jan Rodák 2024-06-17 16:23:53 +02:00
parent ebea1ea21d
commit 174b364e97
No known key found for this signature in database
GPG Key ID: E82E2FA0E160318E
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import (
)
// Deprecated: Use lockfile.*LockFile.
type Locker = lockfile.Locker //lint:ignore SA1019 // lockfile.Locker is deprecated
type Locker = lockfile.Locker //nolint:staticcheck // SA1019 lockfile.Locker is deprecated
// Deprecated: Use lockfile.GetLockFile.
func GetLockfile(path string) (lockfile.Locker, error) {