mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Use gofumpt to format code
gofumpt (mvdan.cc/gofumpt) is a fork of gofmt with stricter rules. Brought to you by git ls-files \*.go | grep -v ^vendor/ | xargs gofumpt -s -w Looking at the diff, all these changes make sense. Also, replace gofmt with gofumpt in golangci.yml. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
+2
-2
@@ -68,7 +68,7 @@ func (s *notifySocket) bindSocket() error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = os.Chmod(s.socketPath, 0777)
|
||||
err = os.Chmod(s.socketPath, 0o777)
|
||||
if err != nil {
|
||||
socket.Close()
|
||||
return err
|
||||
@@ -79,7 +79,7 @@ func (s *notifySocket) bindSocket() error {
|
||||
}
|
||||
|
||||
func (s *notifySocket) setupSocketDirectory() error {
|
||||
return os.Mkdir(path.Dir(s.socketPath), 0755)
|
||||
return os.Mkdir(path.Dir(s.socketPath), 0o755)
|
||||
}
|
||||
|
||||
func notifySocketStart(context *cli.Context, notifySocketHost, id string) (*notifySocket, error) {
|
||||
|
||||
Reference in New Issue
Block a user