Skip to content

Commit 1095088

Browse files
committed
chore: rename cs field to commentsShortener
1 parent 6a6feb9 commit 1095088

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shorten/shortener.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func WithLogger(logger Logger) Options {
7373
type 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

0 commit comments

Comments
 (0)