mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
fileperms: newer Go 1.13+ octal literal format
Problem: While removing cgroupsv1 code, I noticed my neovim Go config automatically changed fileperms to the new octal format and I didn't want that polluting my diffs. Decision: I thought it best to switch to the new octal format in a dedicated PR. Action: - Cursor switched to new octal format for all fileperm ocurrences in Go source and test files. - vendor/, docs/ and non-Go files were ignored. - Reviewed manually. Ref: https://go.dev/ref/spec#Go_1.13 Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
@@ -116,7 +116,7 @@ type Monitor struct {
|
||||
// NewQMPMonitor creates the monitor subsection of our vm
|
||||
func NewQMPMonitor(name string, machineRuntimeDir *define.VMFile) (Monitor, error) {
|
||||
if err := fileutils.Exists(machineRuntimeDir.GetPath()); errors.Is(err, fs.ErrNotExist) {
|
||||
if err := os.MkdirAll(machineRuntimeDir.GetPath(), 0755); err != nil {
|
||||
if err := os.MkdirAll(machineRuntimeDir.GetPath(), 0o755); err != nil {
|
||||
return Monitor{}, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user