From 856ccaac10579abda5620dfc86ad6031b1076a43 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 29 Dec 2022 15:00:24 +0100 Subject: make format Run "make format" using go version go1.19.4 linux/amd64 --- internal/ctlsocksrv/sanitize.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'internal/ctlsocksrv/sanitize.go') diff --git a/internal/ctlsocksrv/sanitize.go b/internal/ctlsocksrv/sanitize.go index 4333872..2272943 100644 --- a/internal/ctlsocksrv/sanitize.go +++ b/internal/ctlsocksrv/sanitize.go @@ -6,10 +6,11 @@ import ( ) // SanitizePath adapts filepath.Clean for FUSE paths. -// 1) Leading slash(es) are dropped -// 2) It returns "" instead of "." -// 3) If the cleaned path points above CWD (start with ".."), an empty string -// is returned +// 1. Leading slash(es) are dropped +// 2. It returns "" instead of "." +// 3. If the cleaned path points above CWD (start with ".."), an empty string +// is returned +// // See the TestSanitizePath testcases for examples. func SanitizePath(path string) string { // (1) -- cgit v1.2.3