Skip to content

Commit

Permalink
fix: reading files from repo that should not be included (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-script authored Jan 3, 2024
1 parent 336036e commit 16730e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

- (fix): [fse-906] read the expected files when trying to read tokens

## Unreleased

- (fix) [fse-900] Fix failing convertCoin and convertERC20 endpoints
Expand Down
2 changes: 1 addition & 1 deletion internal/v1/requester/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func GetJsonsFromFolder(url string, folder string) ([]File, error) {
for _, t := range m.Tree {
if t.Mode == "100644" {
// Is file
if strings.Contains(t.Path, folder) {
if strings.HasPrefix(t.Path, folder+"/") {
fileResponse, err := QueryGithubWithCache(t.URL)
if err != nil {
return []File{}, err
Expand Down

0 comments on commit 16730e9

Please sign in to comment.