Skip to content

Commit 208cc7a

Browse files
authored
Merge pull request #38 from ThreeDotsLabs/m110-patch-1
2 parents 682fcfa + 7486154 commit 208cc7a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

trainings/files/read.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package files
22

33
import (
44
"os"
5-
"path"
65
"path/filepath"
76

87
"github.com/pkg/errors"
@@ -79,7 +78,7 @@ var solutionExtensions = []string{
7978
}
8079

8180
func IsSolutionFile(filePath string) bool {
82-
name := path.Base(filePath)
81+
name := filepath.Base(filePath)
8382

8483
for _, solutionFile := range solutionFiles {
8584
if name == solutionFile {
@@ -88,7 +87,7 @@ func IsSolutionFile(filePath string) bool {
8887
}
8988

9089
for _, ext := range solutionExtensions {
91-
if path.Ext(filePath) == ext {
90+
if filepath.Ext(filePath) == ext {
9291
return true
9392
}
9493
}

0 commit comments

Comments
 (0)