From 52d7e6616c9f1a6fb461cd40c3dfc7edc9607db1 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 23 Feb 2020 16:38:24 +0100 Subject: don't return, store in config --- src/init.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') 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 -- cgit 1.4.1