Skip to content

Commit

Permalink
fix(userbot): fix env err
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Mar 24, 2024
1 parent 21b80d2 commit 268edb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/userbot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ func run(ctx context.Context) error {
flag.Parse()

// Using ".env" file to load environment variables.
err := godotenv.Load()
if err != nil {
if err := godotenv.Load(); err != nil && !os.IsNotExist(err) {
return errors.Wrap(err, "load env")
}

Expand Down

0 comments on commit 268edb3

Please sign in to comment.