mirror of
https://github.com/safing/portbase
synced 2025-09-10 15:34:26 +00:00
Fix tests and linter warnings
This commit is contained in:
parent
7d2cd6c15d
commit
f59ad0357a
162 changed files with 668 additions and 696 deletions
|
@ -1,4 +1,4 @@
|
|||
// +build !windows
|
||||
// go:build !windows
|
||||
|
||||
package utils
|
||||
|
||||
|
@ -29,12 +29,12 @@ func ExampleDirStructure() {
|
|||
return
|
||||
}
|
||||
|
||||
ds := NewDirStructure(basePath, 0755)
|
||||
secret := ds.ChildDir("secret", 0700)
|
||||
repo := ds.ChildDir("repo", 0777)
|
||||
_ = repo.ChildDir("a", 0700)
|
||||
b := repo.ChildDir("b", 0707)
|
||||
c := b.ChildDir("c", 0750)
|
||||
ds := NewDirStructure(basePath, 0o0755)
|
||||
secret := ds.ChildDir("secret", 0o0700)
|
||||
repo := ds.ChildDir("repo", 0o0777)
|
||||
_ = repo.ChildDir("a", 0o0700)
|
||||
b := repo.ChildDir("b", 0o0707)
|
||||
c := b.ChildDir("c", 0o0750)
|
||||
|
||||
err = ds.Ensure()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue