Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 8334528

Browse files
author
Erik Hollensbe
committed
Fix golint
Signed-off-by: Erik Hollensbe <[email protected]>
1 parent 8539494 commit 8334528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ func goMRBFuncCall(s *C.mrb_state, v C.mrb_value) C.mrb_value {
6666
methodTable := classTable.Map[ci.proc.target_class]
6767
classTable.Mutex.Unlock()
6868
if methodTable == nil {
69-
panic(fmt.Sprintf("func call on unknown class"))
69+
panic("func call on unknown class")
7070
}
7171

7272
// Lookup the method
7373
methodTable.Mutex.Lock()
7474
f := methodTable.Map[ci.mid]
7575
methodTable.Mutex.Unlock()
7676
if f == nil {
77-
panic(fmt.Sprintf("func call on unknown method"))
77+
panic("func call on unknown method")
7878
}
7979

8080
// Call the method to get our *Value

0 commit comments

Comments
 (0)