Skip to content

Commit

Permalink
tiny fix, html is now deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
hrissan committed Jun 24, 2024
1 parent c9bcd72 commit 83d056a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/tlcodegen/tlgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ func (gen *Gen2) WriteToDir(outdir string) error {
return fmt.Errorf("outdir %q not empty and has no %q marker file, please clean manually", outdir, markerFile)
}
delete(relativeFiles, markerFile) // special treatment, never delete it
delete(relativeFiles, TlJSONHTML) // not deterministic, always write
notTouched := 0
written := 0
deleted := 0
Expand All @@ -688,9 +687,6 @@ func (gen *Gen2) WriteToDir(outdir string) error {
continue
}
}
if filepathName != TlJSONHTML { // not deterministic, do not write marker if json help changed
written++
}
if err := os.WriteFile(f, []byte(code), 0644); err != nil {
return fmt.Errorf("error writing file %q: %w", f, err)
}
Expand Down

0 comments on commit 83d056a

Please sign in to comment.