Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed linting issues: Use method Error #68

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions internal/stm32CubeMX/stm32CubeMX.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func GetStartupFile(outPath string, bridgeParams BridgeParamType) (string, error

if !utils.DirExists(startupFolder) {
errorString := "Directory not found: " + startupFolder
log.Errorf(errorString)
log.Error(errorString)
return "", errors.New(errorString)
}

Expand All @@ -773,7 +773,7 @@ func GetStartupFile(outPath string, bridgeParams BridgeParamType) (string, error

if startupFile == "" {
errorString := "startup file not found"
log.Errorf(errorString)
log.Error(errorString)
return "", errors.New(errorString)
}

Expand Down Expand Up @@ -821,7 +821,7 @@ func GetSystemFile(outPath string, bridgeParams BridgeParamType) (string, error)

if !utils.DirExists(systemFolder) {
errorString := "Directory not found: " + systemFolder
log.Errorf(errorString)
log.Error(errorString)
return "", errors.New(errorString)
}

Expand All @@ -837,7 +837,7 @@ func GetSystemFile(outPath string, bridgeParams BridgeParamType) (string, error)

if systemFile == "" {
errorString := "system file not found"
log.Errorf(errorString)
log.Error(errorString)
return "", errors.New(errorString)
}

Expand Down Expand Up @@ -903,7 +903,7 @@ func GetLinkerScripts(outPath string, bridgeParams BridgeParamType) ([]string, e

if !utils.DirExists(linkerFolder) {
errorString := "Directory not found: " + linkerFolder
log.Errorf(errorString)
log.Error(errorString)
return nil, errors.New(errorString)
}

Expand Down
Loading