From 57a05a9503d82d19e625243a9cf72eb10be88a96 Mon Sep 17 00:00:00 2001 From: albttx Date: Thu, 9 Nov 2023 12:29:18 +0000 Subject: [PATCH] chore: fmt --- gnovm/cmd/gno/test.go | 2 +- gnovm/pkg/gnolang/machine.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnovm/cmd/gno/test.go b/gnovm/cmd/gno/test.go index af08273bd3b..d4b8dbb5486 100644 --- a/gnovm/cmd/gno/test.go +++ b/gnovm/cmd/gno/test.go @@ -360,7 +360,7 @@ func gnoTestPkg( m := tests.TestMachine(testStore, stdout, testPkgName) - memFiles := make([]*std.MemFile, 0, len(ifiles.FileNames()) + 1) + memFiles := make([]*std.MemFile, 0, len(ifiles.FileNames())+1) for _, f := range memPkg.Files { for _, ifileName := range ifiles.FileNames() { if f.Name == "gno.mod" || f.Name == ifileName { diff --git a/gnovm/pkg/gnolang/machine.go b/gnovm/pkg/gnolang/machine.go index bec8d550d48..d2c83fe97ce 100644 --- a/gnovm/pkg/gnolang/machine.go +++ b/gnovm/pkg/gnolang/machine.go @@ -407,7 +407,7 @@ func (m *Machine) runFiles(fns ...*FileNode) { notBaseName = fn.PkgName != m.Package.PkgName ) - if notEmptyName && notBaseName { + if notEmptyName && notBaseName { panic(fmt.Sprintf("expected package name [%s] but got [%s]", m.Package.PkgName, fn.PkgName)) }