Skip to content

Commit 268edb3

Browse files
committed
fix(userbot): fix env err
1 parent 21b80d2 commit 268edb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/userbot/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ func run(ctx context.Context) error {
5151
flag.Parse()
5252

5353
// Using ".env" file to load environment variables.
54-
err := godotenv.Load()
55-
if err != nil {
54+
if err := godotenv.Load(); err != nil && !os.IsNotExist(err) {
5655
return errors.Wrap(err, "load env")
5756
}
5857

0 commit comments

Comments
 (0)