Removed unused updating code and bmclib dependency and other minor changes

This commit is contained in:
David Allen 2024-07-30 14:05:55 -06:00
parent 9b3c21a20a
commit 0922bbf5f9
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
5 changed files with 33 additions and 149 deletions

View file

@ -29,9 +29,9 @@ func LoadAccessToken(path string) (string, error) {
}
// TODO: try to load token from config
testToken = viper.GetString("access_token")
testToken = viper.GetString("access-token")
if testToken != "" {
return testToken, nil
}
return "", fmt.Errorf("failed toload token from environment variable, file, or config")
return "", fmt.Errorf("failed to load token from environment variable, file, or config")
}