mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
fix spacing
This commit is contained in:
parent
5accce3b17
commit
ebe77984c6
18
main.go
18
main.go
@ -531,9 +531,9 @@ func processFile(
|
|||||||
contentHash := getSHA1Hash(html)
|
contentHash := getSHA1Hash(html)
|
||||||
|
|
||||||
log.Debugf(
|
log.Debugf(
|
||||||
nil,
|
nil,
|
||||||
"content hash: %s",
|
"content hash: %s",
|
||||||
contentHash,
|
contentHash,
|
||||||
)
|
)
|
||||||
|
|
||||||
versionPattern := `\[v([a-f0-9]{40})]$`
|
versionPattern := `\[v([a-f0-9]{40})]$`
|
||||||
@ -543,16 +543,16 @@ func processFile(
|
|||||||
|
|
||||||
if len(matches) > 1 {
|
if len(matches) > 1 {
|
||||||
log.Debugf(
|
log.Debugf(
|
||||||
nil,
|
nil,
|
||||||
"previous content hash: %s",
|
"previous content hash: %s",
|
||||||
matches[1],
|
matches[1],
|
||||||
)
|
)
|
||||||
|
|
||||||
if matches[1] == contentHash {
|
if matches[1] == contentHash {
|
||||||
log.Infof(
|
log.Infof(
|
||||||
nil,
|
nil,
|
||||||
"page %q is already up to date",
|
"page %q is already up to date",
|
||||||
target.Title,
|
target.Title,
|
||||||
)
|
)
|
||||||
shouldUpdatePage = false
|
shouldUpdatePage = false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user