       guard let action = actionMap[key] else {
         return ParsingError(message: "Can't parse key '\(key)'") }
 
-      let error = action(valueYaml)
-      if error != nil { return error }
+      if let error = action(valueYaml) {
+        return error
+      }
     }// for
 
     return nil

      return ParsingError(message: "Invalid target type; expected string")
    }

    guard let type = TargetType.fromString(typeString) else {
      return ParsingError(message: "Invalid target type '\(typeString)'")
    }


      case .Executable: return "Executable"
      case .Framework:  return "Framework"
      case .Module:     return "Module"
    }
  }
}
