Skip to content

Commit

Permalink
Update writer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
syhily authored Jan 17, 2024
1 parent d2f025c commit 3e43373
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/file/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
maxLength = 100
maxLength = 60
empty = " "
)

Expand Down Expand Up @@ -62,11 +62,6 @@ func (c *creator) NewWriter(id, total int64, name, subPath string, format Format
// Escape the file name for avoiding the illegal characters.
// Ref: https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
filename = escape(filename)

// Avoid filename too large.
if len(filename) > 200 {
filename = filename[:200]
}

Check failure on line 65 in internal/file/writer.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
// Create the download path.
downloadPath := c.downloadPath
Expand Down

0 comments on commit 3e43373

Please sign in to comment.