From f2f98678289cd3cb5eb39f4319fc752bfba38c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Mon, 16 Dec 2024 16:42:41 +0100 Subject: [PATCH] fix: lint --- modules/ollama/local_unit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ollama/local_unit_test.go b/modules/ollama/local_unit_test.go index 95d9b93638..8489bf1aeb 100644 --- a/modules/ollama/local_unit_test.go +++ b/modules/ollama/local_unit_test.go @@ -35,13 +35,13 @@ func TestRun_localWithCustomLogFileError(t *testing.T) { require.NoError(t, err) defer func() { // Cleanup: restore permissions - os.Chmod(filepath.Dir(f.Name()), 0700) + require.NoError(t, os.Chmod(filepath.Dir(f.Name()), 0o700)) }() // Make the file read-only and its parent directory read-only // This should cause removal to fail on most systems dir := filepath.Dir(f.Name()) - require.NoError(t, os.Chmod(dir, 0500)) + require.NoError(t, os.Chmod(dir, 0o500)) c := &OllamaContainer{ localCtx: &localContext{