File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func WithLogger(logger Logger) Options {
7373type Shortener struct {
7474 config * Config
7575
76- cs * comments.Shortener
76+ commentsShortener * comments.Shortener
7777
7878 logger Logger
7979}
@@ -90,7 +90,7 @@ func NewShortener(config *Config, opts ...Options) *Shortener {
9090 }
9191
9292 if config .ShortenComments {
93- s .cs = & comments.Shortener {
93+ s .commentsShortener = & comments.Shortener {
9494 MaxLen : config .MaxLen ,
9595 TabLen : config .TabLen ,
9696 }
@@ -169,8 +169,8 @@ func (s *Shortener) Process(content []byte) ([]byte, error) {
169169 content = removeAnnotations (content )
170170 }
171171
172- if s .cs != nil {
173- content = s .cs .Process (content )
172+ if s .commentsShortener != nil {
173+ content = s .commentsShortener .Process (content )
174174 }
175175
176176 // Do the final round of non-line-length-aware formatting after we've fixed up the comments
You can’t perform that action at this time.
0 commit comments