Skip to content

Commit

Permalink
fix: nil value of Option param in applyOptionsOnChains function
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed May 10, 2023
1 parent 9f860c7 commit 0fca6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (a *AssetRepo) GetAsset(Id string) *entity.Asset {
// applyOptionsOnChains will check Options passed to requests and apply theme to result chains
func applyOptionsOnChains(chains map[string]*entity.Chain, option *Option) ([]*entity.Chain, error) {

if option.Pagination != nil {
if option != nil && option.Pagination != nil {
return getPaginatedChainList(chains, option.Pagination.PageNumber, option.Pagination.PageSize)
}

Expand Down

0 comments on commit 0fca6af

Please sign in to comment.