Files
android_development/tools/repo_diff/service/repodiff/interactors/common.go
Scott Lobdell 9a38910900 Add project type to database records
Test: No production impact, unit tests included, actively testing
current production dataset

Change-Id: Ia7835938d602f3a11e0d001a1242a8278960b096
2018-04-16 09:49:45 -07:00

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
}