Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rk185349 committed Jul 22, 2020
1 parent e9de418 commit a0e8ef9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func generateIndex() string {
dt := time.Now()
if dated_postfix {
return fmt.Sprintf("%s-%s", index, dt.Format("2006.01.02"))
}
if time_postfix != "" {
} else if time_postfix != "" {
return fmt.Sprintf("%s%s", index, dt.Format(time_postfix))
}
return index
Expand Down

0 comments on commit a0e8ef9

Please sign in to comment.