Skip to content

Commit

Permalink
fix: Use null not empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Dec 23, 2024
1 parent 3c738ed commit a44680c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dominos/dominos.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (d *Dominos) StoreLookup(zipCode, address, aptNum string) ([]Store, error)
}

storeAddress := storeData.(map[string]any)["AddressDescription"].(string)
if storeData.(map[string]any)["LocationInfo"] != "" {
if storeData.(map[string]any)["LocationInfo"] != nil {
storeAddress = strings.Split(storeAddress, storeData.(map[string]any)["LocationInfo"].(string))[0]
}

Expand Down

0 comments on commit a44680c

Please sign in to comment.