summaryrefslogtreecommitdiffstats
path: root/unveil.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:22:47 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:35:32 +0530
commit6e6648e344c889767240a33f42febf9498250131 (patch)
tree1f9ac5de46ecf7f535c843011e18730267630614 /unveil.go
parent0ed4b29fe0aa3e93557569c6f803eafc5e228a37 (diff)
downloadlegit-6e6648e344c889767240a33f42febf9498250131.tar.gz
legit-6e6648e344c889767240a33f42febf9498250131.tar.bz2
legit-6e6648e344c889767240a33f42febf9498250131.zip
unveil: add git executable
Diffstat (limited to 'unveil.go')
-rw-r--r--unveil.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/unveil.go b/unveil.go
index 9fe5e10..3b4803e 100644
--- a/unveil.go
+++ b/unveil.go
@@ -20,8 +20,7 @@ func UnveilBlock() error {
func UnveilPaths(paths []string, perms string) error {
for _, path := range paths {
- err := Unveil(path, perms)
- if err != nil {
+ if err := Unveil(path, perms); err != nil {
return err
}
}