fix comment and variable name typos

This commit is contained in:
Michael Eischer committed 2026-05-16 17:05:33 +02:00
1 parent fa1a318780
commit 10645ccd2a
17 files changed
+34 -30

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ func newDeviceMap(allowedSourcePaths []string, fs fs.FS) (deviceMap, error) {
return deviceMap, nil
}
// IsAllowed returns true if the path is located on an allowed device.
// IsAllowed reports whether the path is located on an allowed device.
func (m deviceMap) IsAllowed(item string, deviceID uint64, fs fs.FS) (bool, error) {
for dir := item; ; dir = fs.Dir(dir) {
debug.Log("item %v, test dir %v", item, dir)