Skip to content

Commit a38853b

Browse files
apply CR suggestion
1 parent 227dbd1 commit a38853b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: legacy/builder/builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func containerBuildOptions(ctx *types.Context) types.BareCommand {
458458
func warnAboutArchIncompatibleLibraries(ctx *types.Context) types.BareCommand {
459459
return types.BareCommand(func(ctx *types.Context) error {
460460
overrides, _ := ctx.BuildProperties.GetOk("architecture.override_check")
461-
_ = WarnAboutArchIncompatibleLibraries(
461+
WarnAboutArchIncompatibleLibraries(
462462
ctx.TargetPlatform,
463463
overrides,
464464
ctx.SketchLibrariesDetector.ImportedLibraries(),

Diff for: legacy/builder/warn_about_arch_incompatible_libraries.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func WarnAboutArchIncompatibleLibraries(
2727
overrides string,
2828
importedLibraries libraries.List,
2929
printInfoFn func(string),
30-
) error {
30+
) {
3131
archs := []string{targetPlatform.Platform.Architecture}
3232
if overrides != "" {
3333
archs = append(archs, strings.Split(overrides, ",")...)
@@ -42,6 +42,4 @@ func WarnAboutArchIncompatibleLibraries(
4242
strings.Join(archs, ", ")))
4343
}
4444
}
45-
46-
return nil
4745
}

0 commit comments

Comments
 (0)