Test: No production impact, unit tests included, actively testing current production dataset Change-Id: Ia7835938d602f3a11e0d001a1242a8278960b096
16 lines
252 B
Go
16 lines
252 B
Go
package interactors
|
|
|
|
import (
|
|
cst "repodiff/constants"
|
|
)
|
|
|
|
type TypeMap map[string]cst.ProjectType
|
|
|
|
func (t TypeMap) getWithDefault(key string, fallback cst.ProjectType) cst.ProjectType {
|
|
val, ok := t[key]
|
|
if !ok {
|
|
return fallback
|
|
}
|
|
return val
|
|
}
|