Skip to content

Commit 2440d9b

Browse files
committed
Use packageindex.HasValidExtension() in package index detection code
I made a dedicated function for this purpose, then forgot to use it!
1 parent 5b78aee commit 2440d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func isPackageIndex(potentialProjectPath *paths.Path) bool {
266266
}
267267

268268
func isPackageIndexIndicatorFile(filePath *paths.Path) bool {
269-
if filePath.Ext() == ".json" {
269+
if packageindex.HasValidExtension(filePath) {
270270
return true
271271
}
272272

0 commit comments

Comments
 (0)