Skip to content

Commit 3afb1b1

Browse files
m1kolafealebenpae
authored andcommitted
CLOUDP-302068: Simplifies architectures.GetArchitecture (#4158)
1 parent 520b709 commit 3afb1b1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/util/architectures/static.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ func IsRunningStaticArchitecture(annotations map[string]string) bool {
6464
}
6565

6666
func GetArchitecture(annotations map[string]string) DefaultArchitecture {
67-
isStatic := IsRunningStaticArchitecture(annotations)
68-
architecture := NonStatic
69-
if isStatic {
70-
architecture = Static
67+
if IsRunningStaticArchitecture(annotations) {
68+
return Static
7169
}
72-
return architecture
70+
return NonStatic
7371
}
7472

7573
// GetMongoVersionForAutomationConfig returns the required version with potentially the suffix -ent.

0 commit comments

Comments
 (0)