1package interactors
2
3import (
4	cst "repodiff/constants"
5)
6
7type TypeMap map[string]cst.ProjectType
8
9func (t TypeMap) getWithDefault(key string, fallback cst.ProjectType) cst.ProjectType {
10	val, ok := t[key]
11	if !ok {
12		return fallback
13	}
14	return val
15}
16