Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Mar 7, 2025
1 parent c7d6975 commit b63e13d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ import (
"github.com/splunk/splunk_otel_dotnet_deployer/internal/modularinput"
)

func runDeployer(input *modularinput.Input, stdin, stdout, stderr *os.File) error {
func runDeployer(_ *modularinput.Input, _, _, _ *os.File) error {
panic("OS not supported")
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const (
)

func main() {
os.Exit(run())
}

func run() int {
logCloseFunc := setupLogger()
defer logCloseFunc()

Expand All @@ -38,17 +42,13 @@ func main() {
flag.Parse()

if *schemeFlag {
os.Exit(0)
return 0
}

if *validateFlag {
os.Exit(0)
return 0
}

os.Exit(run())
}

func run() int {
input, err := modularinput.ReadXML(os.Stdin)
if err != nil {
log.Println("Error:", err)
Expand Down

0 comments on commit b63e13d

Please sign in to comment.