Skip to content

Commit

Permalink
refactor: composer, avoid use magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki-working committed Jun 8, 2022
1 parent 9790eed commit 8fc0cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/composer/composer_lockfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func readComposerLockFile(path string) ([]Package, error) {
lockFileData, e := utils.ReadFileLimited(path, 4*1024*1024)
lockFileData, e := utils.ReadFileLimited(path, _ComposerLockFileSizeLimit)
if e != nil {
return nil, errors.Wrap(e, "Read composer.lock failed")
}
Expand Down

0 comments on commit 8fc0cf0

Please sign in to comment.