Skip to content

Commit

Permalink
Code clean up (#685)
Browse files Browse the repository at this point in the history
* remove redundant fields/objects

* remove redundant fields/objects
  • Loading branch information
Integralist authored Oct 19, 2022
1 parent e76a5c8 commit c2b48bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions .fastly/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ config_version = 2
[fastly]
api_endpoint = "https://api.fastly.com"

[cli]
remote_config = "https://developer.fastly.com/api/internal/cli-config"
ttl = "5m"

[language]
[language.go]
tinygo_constraint = ">= 0.24.0-0" # NOTE -0 indicates to the CLI's semver package that we accept pre-releases (TinyGo users commonly use pre-releases).
Expand Down
8 changes: 1 addition & 7 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ type CLI struct {
Version string `toml:"version"`
}

// User represents user specific configuration.
type User struct {
Token string `toml:"token"`
Email string `toml:"email"`
}

// Viceroy represents viceroy specific configuration.
type Viceroy struct {
LastChecked string `toml:"last_checked"`
Expand Down Expand Up @@ -268,7 +262,7 @@ func createConfigDir(path string) error {
return nil
}

// File represents our dynamic application toml configuration.
// File represents our application toml configuration.
type File struct {
CLI CLI `toml:"cli"`
ConfigVersion int `toml:"config_version"`
Expand Down

0 comments on commit c2b48bb

Please sign in to comment.