Skip to content

Commit a2efb06

Browse files
committed
fix: tests failing
- don't check the file type in when fetching file in filepathsync Signed-off-by: Suraj Banakar <[email protected]>
1 parent 33d6872 commit a2efb06

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pkg/sync/filepath_sync.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,7 @@ func (fs *FilePathSync) Fetch(_ context.Context) (string, error) {
3434
return "", err
3535
}
3636

37-
switch fs.FileType {
38-
case "yaml":
39-
fallthrough
40-
case "yml":
41-
return yamlToJSON(rawFile)
42-
case "json":
43-
return string(rawFile), nil
44-
default:
45-
return "", fmt.Errorf("filepath extension '%v' is not supported", fs.FileType)
46-
}
37+
return string(rawFile), err
4738
}
4839

4940
func (fs *FilePathSync) Notify(ctx context.Context, w chan<- INotify) {

0 commit comments

Comments
 (0)