Skip to content

Commit

Permalink
fix: make go lint happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zong-zhe committed Aug 15, 2023
1 parent 8a7d240 commit e7a7d79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/package/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ func TestPkgWithInVendorMode(t *testing.T) {
}
kclPkg1 := NewKclPkg(&initOpts)

kclPkg1.AddDeps(&opt.AddOptions{
err := kclPkg1.AddDeps(&opt.AddOptions{
LocalPath: "localPath",
RegistryOpts: opt.RegistryOptions{
Local: &opt.LocalOptions{
Expand All @@ -585,6 +585,8 @@ func TestPkgWithInVendorMode(t *testing.T) {
},
})

assert.Equal(t, err, nil)

// package the kcl1 into tar in vendor mode.
tarPath, err := kclPkg1.PackageCurrentPkgPath(true)
assert.Equal(t, err, nil)
Expand Down

0 comments on commit e7a7d79

Please sign in to comment.