Fix: algorithm bugs in qmc

Optimize: algorithm in `kgm`
This commit is contained in:
Emmm Monster
2021-08-03 04:17:10 +08:00
parent 60c15894c0
commit 28d84e4dc2
3 changed files with 6 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/ulikunitz/xz"
"github.com/unlock-music/cli/internal/logging"
"go.uber.org/zap"
"io/ioutil"
"io"
)
var maskDiffVpr = []byte{
@@ -50,7 +50,7 @@ func initMask() {
if err != nil {
logging.Log().Fatal("load kgm mask failed", zap.Error(err))
}
maskV2, err = ioutil.ReadAll(maskReader)
maskV2, err = io.ReadAll(maskReader)
if err != nil {
logging.Log().Fatal("load kgm mask failed", zap.Error(err))
}