From 19984008cd7bc4419d9695bf19f6fe02461ca1de Mon Sep 17 00:00:00 2001 From: therealpaulgg Date: Tue, 2 Apr 2024 23:21:21 -0700 Subject: [PATCH] remove comments --- pkg/utils/write.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/utils/write.go b/pkg/utils/write.go index 7c1d576..e948791 100644 --- a/pkg/utils/write.go +++ b/pkg/utils/write.go @@ -61,10 +61,7 @@ func WriteKey(key []byte, filename string, sshDirectory string) error { return err } } - // check if file exists (for conflict) _, err = os.OpenFile(filepath.Join(p, filename), os.O_RDONLY, 0600) - // if the file exists, hash the contents of the file and compare it to the key - // if the hashes differ, let the user know and ask them to resolve the conflict if err != nil && !errors.Is(err, os.ErrNotExist) { return err } else if err == nil {