fix typo's
All checks were successful
continuous-integration/drone/push Build is passing

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 // Send an HTTP GET request, and return the processed response
func (c *client) get(endpoint string, out interface{}, query url.Values) error { 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 { if err != nil {
return err return err
} }

View File

@ -123,7 +123,7 @@ func loadPersistentData() (*persistentData, error) {
defer f.Close() defer f.Close()
b, err := io.ReadAll(f) b, err := io.ReadAll(f)
if err != nil { 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) err = json.Unmarshal(b, data)