Skip to content

Commit

Permalink
printlninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Dec 23, 2024
1 parent c66da7c commit f39f659
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions enums/enumgen/enumgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ package enumgen

import (
"fmt"
"log/slog"

"cogentcore.org/core/base/generate"
"cogentcore.org/core/base/logx"
Expand Down Expand Up @@ -45,15 +44,11 @@ func ParsePackages(cfg *Config) ([]*packages.Package, error) {
func Generate(cfg *Config) error { //types:add
pkgs, err := ParsePackages(cfg)
if err != nil {
if logx.UserLevel <= slog.LevelInfo {
logx.PrintlnInfo(err)
}
logx.PrintlnInfo(err)
return err
}
err = GeneratePkgs(cfg, pkgs)
if logx.UserLevel <= slog.LevelInfo {
logx.PrintlnInfo(err)
}
logx.PrintlnInfo(err)
return err
}

Expand Down

0 comments on commit f39f659

Please sign in to comment.