Suppress a linter warning
Yes, this helper function always returns nil as one of its results, but that lets the callers not have to remember to do that, so it's shorter than changing the call sites. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
7aedebdccd
commit
42d6b68db1
|
@ -2187,7 +2187,7 @@ func copierHandlerPut(bulkReader io.Reader, req request, idMappings *idtools.IDM
|
||||||
}
|
}
|
||||||
|
|
||||||
func copierHandlerMkdir(req request, idMappings *idtools.IDMappings) (*response, func() error, error) {
|
func copierHandlerMkdir(req request, idMappings *idtools.IDMappings) (*response, func() error, error) {
|
||||||
errorResponse := func(fmtspec string, args ...any) (*response, func() error, error) {
|
errorResponse := func(fmtspec string, args ...any) (*response, func() error, error) { //nolint:unparam
|
||||||
return &response{Error: fmt.Sprintf(fmtspec, args...), Mkdir: mkdirResponse{}}, nil, nil
|
return &response{Error: fmt.Sprintf(fmtspec, args...), Mkdir: mkdirResponse{}}, nil, nil
|
||||||
}
|
}
|
||||||
dirUID, dirGID := 0, 0
|
dirUID, dirGID := 0, 0
|
||||||
|
|
Loading…
Reference in New Issue