more code inspection refactors

This commit is contained in:
MachineMuse 2015-08-28 10:18:30 -06:00
parent 4f6f4827b8
commit 77a74d05fe

View file

@ -43,8 +43,8 @@ object ModelSpecXMLReader {
def parseBinding(bindingnode: NodeSeq, modelspec: ModelSpec) = {
val slot = parseInt((bindingnode \ "@slot").text)
val target = parseTarget((bindingnode \ "@target").text)
slot.map(slot => {
target.map(target =>
slot.foreach(slot => {
target.foreach(target =>
(bindingnode \ "part").foreach {
partnode =>
parseParts(partnode, modelspec, slot, target)