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:
parent
ebea1ea21d
commit
174b364e97
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue