diff options
Diffstat (limited to 'formatter.go')
| -rw-r--r-- | formatter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter.go b/formatter.go index 3d4e873..0256694 100644 --- a/formatter.go +++ b/formatter.go @@ -33,7 +33,7 @@ func (f *Formatter) Format(source []byte, filename string) ([]byte, error) { formattingEngine := &engine.Engine{CommentMode: MapCommentMode(f.CommentMode)} - return []byte(formattingEngine.FormatToString(events)), nil + return formattingEngine.FormatToBytes(events), nil } func analyzeSource(source []byte, filename string) ([]byte, []engine.LineEvent, error) { |