- Authored by
-
Shota FUJI
- Authored at
-
- Committed by
-
Shota FUJI
- Committed at
-
- Signature
-
View
- Object name
- 290981c5a55e9f7959bd42be5e602c3d677e99cf
- Parent
-
3b77efdc
Don't unveil empty paths
Both templates dir and static dir are now optional.
I'm not sure empty paths will trigger error, though.
Changes
1 changed files
(+4/-0)
-
-
func UnveilPaths(paths []string, perms string) error {
for _, path := range paths {
+
if path == "" {
+
continue
+
}
+
if err := Unveil(path, perms); err != nil {
return err
}