Skip to content

Commit

Permalink
tweak code
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 5, 2024
1 parent 2b2aea3 commit 35f0772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if ! command -v golangci-lint &> /dev/null
then
echo "golangci-lint not found, installing..."
# binary will be $(go env GOPATH)/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
fi
if ! golangci-lint run
then
Expand Down
6 changes: 3 additions & 3 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import (
var cli = botcli.New("public-bots")

func onBotInit(cli *botcli.BotCli, bot *deltachat.Bot, cmd *cobra.Command, args []string) {
bot.OnUnhandledEvent(onEvent)
bot.OnNewMsg(onNewMsg)

accounts, err := bot.Rpc.GetAllAccountIds()
if err != nil {
cli.Logger.Error(err)
Expand All @@ -37,9 +40,6 @@ func onBotInit(cli *botcli.BotCli, bot *deltachat.Bot, cmd *cobra.Command, args
}
}
}

bot.OnUnhandledEvent(onEvent)
bot.OnNewMsg(onNewMsg)
}

func onBotStart(cli *botcli.BotCli, bot *deltachat.Bot, cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit 35f0772

Please sign in to comment.