Skip to content

Commit

Permalink
parse time
Browse files Browse the repository at this point in the history
  • Loading branch information
aerth committed Jun 16, 2016
1 parent 285529f commit 96e6b10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ func initialize() (time.Time, string, string, string) {
}

if os.Getenv("COSGO_REFRESH") == "" {
cosgoRefresh = os.Getenv("COSGO_REFRESH")
cosgoRefresh, err = time.ParseDuration(os.Getenv("COSGO_REFRESH"))
if err != nil {
log.Fatalln(err)
}
}

if os.Getenv("COSGO_GPG") == "" {
Expand Down

0 comments on commit 96e6b10

Please sign in to comment.