12 lines
318 B
Go
12 lines
318 B
Go
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build !unix
|
|
|
|
package helper
|
|
|
|
// lockState is a no-op on platforms without advisory file locking. prx only
|
|
// supports Unix-like systems; this exists so the package still builds elsewhere.
|
|
func lockState(_ string) (func() error, error) {
|
|
return func() error { return nil }, nil
|
|
}
|