From 8fc0cf01c742efbf7212412ac3b174a8e65b66e6 Mon Sep 17 00:00:00 2001 From: iseki-working Date: Wed, 8 Jun 2022 11:34:56 +0800 Subject: [PATCH] refactor: composer, avoid use magic number --- module/composer/composer_lockfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/composer/composer_lockfile.go b/module/composer/composer_lockfile.go index d476fd8c..b2f8ced5 100644 --- a/module/composer/composer_lockfile.go +++ b/module/composer/composer_lockfile.go @@ -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") }