Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37dd05bb authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "The type assertion of DefaultableModule as Module is redundant Test: m nothing Bug: n/a"

parents 3c48297d fe201fe1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,10 +89,10 @@ type DefaultableModule interface {
var _ Defaultable = (*DefaultableModuleBase)(nil)

func InitDefaultableModule(module DefaultableModule) {
	if module.(Module).base().module == nil {
	if module.base().module == nil {
		panic("InitAndroidModule must be called before InitDefaultableModule")
	}
	module.setProperties(module.(Module).GetProperties(), module.(Module).base().variableProperties)
	module.setProperties(module.GetProperties(), module.base().variableProperties)

	module.AddProperties(module.defaults())