Silence gopls hints (#2053)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-20 12:05:27 +10:00
1 parent 82a983d934
commit f27d82b391
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ func copyAll(srcs []string, dstDir string, preserve []string) (nums chan int64,
newPath := filepath.Join(dst, rel)
switch {
case info.IsDir():
var dst_mode os.FileMode = os.ModePerm
var dst_mode = os.ModePerm
if slices.Contains(preserve, "mode") {
dst_mode = info.Mode()
}
+2 -3
View File
@@ -6,6 +6,7 @@ import (
"fmt"
"io"
"log"
"maps"
"os"
"os/exec"
"path/filepath"
@@ -1613,9 +1614,7 @@ func (nav *nav) sync() error {
}
}
errMarks := nav.readMarks()
for k, v := range tempmarks {
nav.marks[k] = v
}
maps.Copy(nav.marks, tempmarks)
err = nav.readTags()