We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 682fcfa + 7486154 commit 208cc7aCopy full SHA for 208cc7a
1 file changed
trainings/files/read.go
@@ -2,7 +2,6 @@ package files
2
3
import (
4
"os"
5
- "path"
6
"path/filepath"
7
8
"github.com/pkg/errors"
@@ -79,7 +78,7 @@ var solutionExtensions = []string{
79
78
}
80
81
func IsSolutionFile(filePath string) bool {
82
- name := path.Base(filePath)
+ name := filepath.Base(filePath)
83
84
for _, solutionFile := range solutionFiles {
85
if name == solutionFile {
@@ -88,7 +87,7 @@ func IsSolutionFile(filePath string) bool {
88
87
89
90
for _, ext := range solutionExtensions {
91
- if path.Ext(filePath) == ext {
+ if filepath.Ext(filePath) == ext {
92
return true
93
94
0 commit comments