refactor: Use filepath.ToSlash explicitly for FileConfig, name, to and from params

This commit is contained in:
Felicitas Pojtinger
2021-12-20 02:48:07 +01:00
parent ead0f37858
commit 64db9a586f
8 changed files with 19 additions and 5 deletions
+2 -2
View File
@@ -131,8 +131,8 @@ var operationArchiveCmd = &cobra.Command{
return os.Open(path)
},
Info: info,
Path: path,
Link: link,
Path: filepath.ToSlash(path),
Link: filepath.ToSlash(link),
}
return nil
+2 -2
View File
@@ -121,8 +121,8 @@ var operationUpdateCmd = &cobra.Command{
return os.Open(path)
},
Info: info,
Path: path,
Link: link,
Path: filepath.ToSlash(path),
Link: filepath.ToSlash(link),
}
return nil