Skip to content

Commit 2ddaa22

Browse files
committed
style: run gofmt on helper.go
Fix formatting to pass gofmt check in CI.
1 parent fc87869 commit 2ddaa22

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

internal/ospackage/rpmutils/helper.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,21 +209,21 @@ func compareVersions(v1, v2 string) int {
209209

210210
// Known RPM architectures
211211
var knownRPMArches = map[string]bool{
212-
"x86_64": true,
213-
"i386": true,
214-
"i486": true,
215-
"i586": true,
216-
"i686": true,
217-
"aarch64": true,
218-
"arm64": true,
219-
"armv7hl": true,
220-
"armv7l": true,
221-
"ppc64": true,
222-
"ppc64le": true,
223-
"s390": true,
224-
"s390x": true,
225-
"noarch": true,
226-
"src": true,
212+
"x86_64": true,
213+
"i386": true,
214+
"i486": true,
215+
"i586": true,
216+
"i686": true,
217+
"aarch64": true,
218+
"arm64": true,
219+
"armv7hl": true,
220+
"armv7l": true,
221+
"ppc64": true,
222+
"ppc64le": true,
223+
"s390": true,
224+
"s390x": true,
225+
"noarch": true,
226+
"src": true,
227227
}
228228

229229
// isDistMarker checks if a token contains a distribution marker pattern
@@ -265,7 +265,7 @@ func extractBasePackageNameFromFile(fullName string) string {
265265
// This handles the <name>-<version>-<release>.<dist>.<arch> format
266266
for i := len(parts) - 1; i >= 0; i-- {
267267
part := parts[i]
268-
268+
269269
// Check if this part contains a known architecture
270270
// Split by '.' and check if the last segment is a known arch
271271
dotParts := strings.Split(part, ".")
@@ -281,7 +281,7 @@ func extractBasePackageNameFromFile(fullName string) string {
281281
}
282282
}
283283
}
284-
284+
285285
// Check if this part contains a dist marker
286286
if isDistMarker(part) {
287287
// This is the release part with dist marker. Work backwards to find where version starts

0 commit comments

Comments
 (0)