Skip to content

Commit 70176cd

Browse files
rociiukaralabe
authored andcommitted
accounts/keystore: rename skipKeyFile to nonKeyFile to better reveal the function purpose (#17290)
1 parent d56fa8a commit 70176cd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎accounts/keystore/file_cache.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, er
5656

5757
var newLastMod time.Time
5858
for _, fi := range files {
59-
// Skip any non-key files from the folder
6059
path := filepath.Join(keyDir, fi.Name())
61-
if skipKeyFile(fi) {
60+
// Skip any non-key files from the folder
61+
if nonKeyFile(fi) {
6262
log.Trace("Ignoring file on account scan", "path", path)
6363
continue
6464
}
@@ -88,8 +88,8 @@ func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, er
8888
return creates, deletes, updates, nil
8989
}
9090

91-
// skipKeyFile ignores editor backups, hidden files and folders/symlinks.
92-
func skipKeyFile(fi os.FileInfo) bool {
91+
// nonKeyFile ignores editor backups, hidden files and folders/symlinks.
92+
func nonKeyFile(fi os.FileInfo) bool {
9393
// Skip editor backups and UNIX-style hidden files.
9494
if strings.HasSuffix(fi.Name(), "~") || strings.HasPrefix(fi.Name(), ".") {
9595
return true

0 commit comments

Comments
 (0)