mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
lint: reenable revive unused-parameter check
Signed-off-by: Matt Souza <medsouz99@gmail.com>
This commit is contained in:
@@ -128,7 +128,7 @@ func dbusAuthRootlessConnection(createBus func(opts ...godbus.ConnOption) (*godb
|
||||
|
||||
func newRootlessConnection() (*dbus.Conn, error) {
|
||||
return dbus.NewConnection(func() (*godbus.Conn, error) {
|
||||
return dbusAuthRootlessConnection(func(opts ...godbus.ConnOption) (*godbus.Conn, error) {
|
||||
return dbusAuthRootlessConnection(func(_ ...godbus.ConnOption) (*godbus.Conn, error) {
|
||||
path := filepath.Join(os.Getenv("XDG_RUNTIME_DIR"), "systemd", "private")
|
||||
path, err := filepath.EvalSymlinks(path)
|
||||
if err != nil {
|
||||
|
||||
@@ -346,7 +346,7 @@ func FuzzParser(f *testing.F) {
|
||||
f.Add([]byte(sample))
|
||||
}
|
||||
|
||||
f.Fuzz(func(t *testing.T, orig []byte) {
|
||||
f.Fuzz(func(_ *testing.T, orig []byte) {
|
||||
unitFile := NewUnitFile()
|
||||
unitFile.Path = "foo/bar"
|
||||
unitFile.Filename = "bar"
|
||||
|
||||
@@ -1515,7 +1515,7 @@ func GetPodResourceName(podUnit *parser.UnitFile) string {
|
||||
return podName
|
||||
}
|
||||
|
||||
func ConvertPod(podUnit *parser.UnitFile, name string, unitsInfoMap map[string]*UnitInfo, isUser bool) (*parser.UnitFile, error, error) {
|
||||
func ConvertPod(podUnit *parser.UnitFile, _ string, unitsInfoMap map[string]*UnitInfo, isUser bool) (*parser.UnitFile, error, error) {
|
||||
var warn, warnings error
|
||||
|
||||
service, unitInfo, err := initServiceUnitFile(podUnit, isUser, unitsInfoMap, PodGroup)
|
||||
|
||||
@@ -195,7 +195,7 @@ func GetUserLevelFilter(resolvedUnitDirAdminUser string) func(string, bool) bool
|
||||
}
|
||||
|
||||
func GetNonNumericFilter(resolvedUnitDirAdminUser string, systemUserDirLevel int) func(string, bool) bool {
|
||||
return func(path string, isUserFlag bool) bool {
|
||||
return func(path string, _ bool) bool {
|
||||
// when running in rootless, recursive walk directories that are non numeric
|
||||
// ignore sub dirs under the `users` directory which correspond to a user id
|
||||
if strings.HasPrefix(path, resolvedUnitDirAdminUser) {
|
||||
|
||||
Reference in New Issue
Block a user