Skip to content

Commit

Permalink
Merge pull request #119 from masutaka/fix-open-setting
Browse files Browse the repository at this point in the history
Fix broken `open-setting` sub command
  • Loading branch information
masutaka authored Oct 31, 2023
2 parents 4b6bbd2 + 0f09f34 commit 3d6cee5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/open_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import (
func OpenSettings() error {
var settings Settings

if err := settings.Init(getGistID(), ""); err != nil {
accessToken, err := getAccessToken()
if err != nil {
return err
}

if err := settings.Init(getGistID(), accessToken); err != nil {
return nil
}

Expand Down

0 comments on commit 3d6cee5

Please sign in to comment.