From 4a8fc05118891763c95725841e01a3e9276f9ed1 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Wed, 1 Mar 2023 12:42:04 -0600 Subject: [PATCH] onlent --- mpath/path.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mpath/path.go b/mpath/path.go index 9f4f9f6..f130c5f 100644 --- a/mpath/path.go +++ b/mpath/path.go @@ -35,6 +35,7 @@ func (self Path) Join(pathlets ...string) Path { // CheckDirectoryAccess ensures that the curreth path exists and is a directory, // returning an error if it doesn’t or it isn’t. +//nolint:wrapcheck func (self Path) CheckDirectoryAccess() error { _, err := os.Stat(self.string) if os.IsNotExist(err) { @@ -47,6 +48,7 @@ func (self Path) CheckDirectoryAccess() error { } // Read just runs os.Readfile on the path. +//nolint:wrapcheck func (self Path) Read() ([]byte, error) { return os.ReadFile(self.string) } -- 2.45.2