Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
[Refactor] Fixed a Linter Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
athul committed Oct 14, 2020
1 parent 4ae116b commit 7fda6e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion methods/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ func ProcessCollection(jsonArr []Collection) (string, error) {
for _, jsondat := range jsonArr {
fmt.Printf("\n------------\nName:\t%s\n", color.HiMagentaString(jsondat.Name))
if len(jsondat.Folders) > 0 {
jsondat.getDatafromFolders()
if err := jsondat.getDatafromFolders(); err != nil {
return "", err
}
} else {
request := jsondat.Requests
for _, req := range request {
Expand Down

0 comments on commit 7fda6e7

Please sign in to comment.