Skip to content

Commit

Permalink
Merge pull request #229 from HacDan/issue212
Browse files Browse the repository at this point in the history
fix(main.go): resync if cached token is not equal to the configured token
  • Loading branch information
kenliu authored Apr 16, 2023
2 parents 3499a73 + 317d45c commit c1308b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ func main() {
"config": config,
}

if config.AccessToken != store.User.Token {
Sync(c)
if err := LoadCache(cachePath, &store); err != nil {
return err
}
}

if !c.Bool("color") && !config.Color {
color.NoColor = true
} else {
Expand Down

0 comments on commit c1308b3

Please sign in to comment.