Skip to content

Commit

Permalink
Update token.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Revenko authored May 29, 2021
1 parent c44db25 commit c57c5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ func LoadToken() string {
log.Fatal("Unable to create octotui folder in " + home + "/.config")
}

blackListFile, err := os.OpenFile(home+tokenPath, os.O_RDONLY|os.O_CREATE, 0644)
tokenFile, err := os.OpenFile(home+tokenPath, os.O_RDONLY|os.O_CREATE, 0644)
if err != nil {
log.Fatal("Unable to create token file in " + home + tokenPath)
}
blackListFile.Close()
tokenFile.Close()

fmt.Println("Created token file in: " + home + tokenPath)
fmt.Println("Put your github token in this file")
Expand Down

0 comments on commit c57c5b7

Please sign in to comment.