Skip to content

Commit fbe31dc

Browse files
committed
fix linter
1 parent c1162db commit fbe31dc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

gnovm/pkg/gnolang/type_check.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ func checkAssignableTo(xt, dt Type, autoNative bool) error {
309309
if ddt, ok := dt.(*DeclaredType); ok {
310310
// types must match exactly.
311311
if !dxt.sealed && !ddt.sealed &&
312-
dxt.PkgPath == ddt.PkgPath &&
313-
dxt.Name == ddt.Name { // not yet sealed
312+
dxt.PkgPath == ddt.PkgPath &&
313+
dxt.Name == ddt.Name { // not yet sealed
314314
return nil // ok
315315
} else if dxt.TypeID() == ddt.TypeID() {
316316
return nil // ok
@@ -566,7 +566,6 @@ func (x *BinaryExpr) AssertCompatible(lt, rt Type) {
566566
}
567567

568568
func (x *BinaryExpr) checkCompatibility(xt, dt Type, checker func(t Type) bool, OpStr string) {
569-
//fmt.Println("---checkCompatibility, dt: ", dt)
570569
if !checker(dt) {
571570
panic(fmt.Sprintf("operator %s not defined on: %v", OpStr, kindString(dt)))
572571
}
@@ -682,7 +681,7 @@ func (x *AssignStmt) AssertCompatible(store Store, last BlockNode) {
682681
if len(x.Lhs) != len(cft.Results) {
683682
panic(fmt.Sprintf(
684683
"assignment mismatch: "+
685-
"%d variables but %s returns %d values",
684+
"%d variables but %s returns %d values",
686685
len(x.Lhs), cx.Func.String(), len(cft.Results)))
687686
}
688687
if x.Op == ASSIGN {
@@ -764,7 +763,7 @@ func (x *AssignStmt) AssertCompatible(store Store, last BlockNode) {
764763
// expr on lhs/rhs.
765764
if len(x.Lhs) != 1 || len(x.Rhs) != 1 {
766765
panic("assignment operator " + x.Op.TokenString() +
767-
" requires only one expression on lhs and rhs")
766+
" requires only one expression on lhs and rhs")
768767
}
769768
for i, lx := range x.Lhs {
770769
lt := evalStaticTypeOf(store, last, lx)

0 commit comments

Comments
 (0)