Skip to content

Commit

Permalink
Merge pull request #11 from b4b4r07/feature/cache
Browse files Browse the repository at this point in the history
Do not save token in cache
  • Loading branch information
b4b4r07 authored Feb 17, 2022
2 parents fdb2e3f + 4c7e450 commit 384082b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/gist/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func (c *Cache) Save(pages []Page) error {
}
defer f.Close()
c.Pages = pages
// TODO: don't save token
// but better to think another solution to solve this
c.Token = ""
return json.NewEncoder(f).Encode(&c)
}

Expand Down

0 comments on commit 384082b

Please sign in to comment.