mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Fix some revive warnings
This is needed since the future commits will touch this code, and then the lint-extra CI job complains. > libcontainer/factory.go#L245 > var-naming: var fdsJson should be fdsJSON (revive) and > libcontainer/init_linux.go#L181 > error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) and > notify_socket.go#L94 > receiver-naming: receiver name n should be consistent with previous receiver name s for notifySocket (revive) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
+3
-3
@@ -91,12 +91,12 @@ func notifySocketStart(context *cli.Context, notifySocketHost, id string) (*noti
|
||||
return notifySocket, nil
|
||||
}
|
||||
|
||||
func (n *notifySocket) waitForContainer(container libcontainer.Container) error {
|
||||
s, err := container.State()
|
||||
func (s *notifySocket) waitForContainer(container libcontainer.Container) error {
|
||||
state, err := container.State()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return n.run(s.InitProcessPid)
|
||||
return s.run(state.InitProcessPid)
|
||||
}
|
||||
|
||||
func (n *notifySocket) run(pid1 int) error {
|
||||
|
||||
Reference in New Issue
Block a user