Skip to content

Commit

Permalink
Fix typo with file_indexer.go (#6502)
Browse files Browse the repository at this point in the history
Signed-off-by: Parthvi Vala <pvala@redhat.com>

Signed-off-by: Parthvi Vala <pvala@redhat.com>
  • Loading branch information
valaparthvi authored Jan 18, 2023
1 parent 53a2a23 commit 8dbf42e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/util/file_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func runIndexerWithExistingFileIndex(directory string, ignoreRules []string, rem
return IndexerRet{}, err
}
if len(matches) == 0 {
return IndexerRet{}, fmt.Errorf("path %q doens't exist", remoteAttribute)
return IndexerRet{}, fmt.Errorf("path %q doesn't exist", remoteAttribute)
}
for _, fileName := range matches {
if checkFileExist(fileName) {
Expand Down Expand Up @@ -333,7 +333,7 @@ func runIndexerWithExistingFileIndex(directory string, ignoreRules []string, rem
filesDeleted[remote] = true
}
} else {
return IndexerRet{}, fmt.Errorf("path %q doens't exist", fileName)
return IndexerRet{}, fmt.Errorf("path %q doesn't exist", fileName)
}
}
}
Expand Down Expand Up @@ -412,7 +412,7 @@ func recursiveChecker(pathOptions recursiveCheckerPathOptions, ignoreRules []str
}

if len(matchedPathsDir) == 0 {
return IndexerRet{}, fmt.Errorf("path %q doens't exist", joinedPath)
return IndexerRet{}, fmt.Errorf("path %q doesn't exist", joinedPath)
}

joinedRelPath, err := filepath.Rel(pathOptions.directory, joinedPath)
Expand Down

0 comments on commit 8dbf42e

Please sign in to comment.