Skip to content
Snippets Groups Projects
Commit 42ab1c35 authored by Marc Rene Arns's avatar Marc Rene Arns
Browse files

only build checksums, if in watch mode

parent 250f9806
No related branches found
No related tags found
No related merge requests found
......@@ -250,13 +250,15 @@ func (c *converter) prepare(dir, file string) error {
}
}
newChecksum := fileCheckSum(filep)
if ARGS.Watch.Get() {
newChecksum := fileCheckSum(filep)
if newChecksum == c.checksums[filep] {
return nil
}
if newChecksum == c.checksums[filep] {
return nil
}
c.checksums[filep] = newChecksum
c.checksums[filep] = newChecksum
}
if ARGS.WatchDir.Get() {
if filep != c.inFilep && c.Config.Fmt {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment