about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-23 16:38:24 +0100
committerEmile <hanemile@protonmail.com>2020-02-23 16:38:24 +0100
commit52d7e6616c9f1a6fb461cd40c3dfc7edc9607db1 (patch)
treef88f08f5f502a0caa7a8e1fbba2ecedaf00797e0
parent563d7f29d13445a052b22a7948b857abbf6dbb34 (diff)
don't return, store in config
-rw-r--r--src/init.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/init.go b/src/init.go
index 7ebbd8b..2bf600b 100644
--- a/src/init.go
+++ b/src/init.go
@@ -40,13 +40,7 @@ func buildBot(i int, config *Config) {
 	radareCommand := fmt.Sprintf("rasm2 -a %s -b %d -f %s", config.Arch, config.Bits, botPath)
 	botSource := r2cmd(r2p1, radareCommand)
 
-	bot := Bot{
-		Path:   path,
-		Source: botSource,
-	}
-
-	// return the bot
-	return bot
+	config.Bots[i].Source = botSource
 }
 
 // init initializes the arena