Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Nov 9, 2023
1 parent 5f39fd3 commit 57a05a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gnovm/pkg/gnolang/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 57a05a9

Please sign in to comment.