style: use modern octal literal (#2568)
This commit is contained in:
1 parent
a170ffd8d9
commit
b41a0f839b
1 file changed
+1
-1
@@ -119,7 +119,7 @@ func init() {
|
|||||||
runtimeDir := os.Getenv("XDG_RUNTIME_DIR")
|
runtimeDir := os.Getenv("XDG_RUNTIME_DIR")
|
||||||
if runtimeDir == "" {
|
if runtimeDir == "" {
|
||||||
runtimeDir = filepath.Join(os.TempDir(), fmt.Sprintf("lf-%s", gUser.Uid))
|
runtimeDir = filepath.Join(os.TempDir(), fmt.Sprintf("lf-%s", gUser.Uid))
|
||||||
if err := os.MkdirAll(runtimeDir, 0700); err != nil {
|
if err := os.MkdirAll(runtimeDir, 0o700); err != nil {
|
||||||
log.Fatalf("creating runtime dir: %s", err)
|
log.Fatalf("creating runtime dir: %s", err)
|
||||||
}
|
}
|
||||||
st, err := os.Stat(runtimeDir)
|
st, err := os.Stat(runtimeDir)
|
||||||
|
|||||||
Reference in new issue
Block a user