mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-30 11:09:01 +01:00
Lint
This commit is contained in:
parent
5dde0fb87c
commit
a3ef961931
@ -36,7 +36,7 @@ func buildCommand(site *sites.Site) error {
|
||||
}
|
||||
|
||||
func cleanCommand(site *sites.Site) error {
|
||||
printPathSetting("Cleaner:", fmt.Sprint("Removing %s...", site.DestDir()))
|
||||
printPathSetting("Cleaner:", fmt.Sprintf("Removing %s...", site.DestDir()))
|
||||
if buildOptions.DryRun {
|
||||
buildOptions.Verbose = true
|
||||
}
|
||||
|
@ -101,7 +101,6 @@ func run(cmd string) error {
|
||||
// kingpin should have provided help and exited before here
|
||||
panic("unknown command")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Load the site, and print the common banner settings.
|
||||
|
@ -41,7 +41,6 @@ func (s postsStrategy) collectible(filename string) bool {
|
||||
|
||||
func (s postsStrategy) future(filename string) bool {
|
||||
t, ok := DateFromFilename(filename)
|
||||
return false
|
||||
return ok && t.After(time.Now())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user