fix typo's
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Steven Polley 2023-11-13 00:33:40 -07:00
parent 7cdf013b1e
commit 67fcfeb177
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ func (l LoginCredentials) authHeader() string {
// Send an HTTP GET request, and return the processed response
func (c *client) get(endpoint string, out interface{}, query url.Values) error {
req, err := http.NewRequest("GET", c.Credentials.ApiServer+endpoint+query.Encode(), nil)
req, err := http.NewRequest("GET", c.Credentials.ApiServer+endpoint+"?"+query.Encode(), nil)
if err != nil {
return err
}

View File

@ -123,7 +123,7 @@ func loadPersistentData() (*persistentData, error) {
defer f.Close()
b, err := io.ReadAll(f)
if err != nil {
return nil, fmt.Errorf("failed to read file data/questrade-data.jsonn: %v", err)
return nil, fmt.Errorf("failed to read file data/questrade-data.json: %v", err)
}
err = json.Unmarshal(b, data)