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

Commit b1ff2644 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Simplify codes for BuildSuperImage func" am: c02be157 am: f199d2d5 am: 9488811f

Original change: https://android-review.googlesource.com/c/platform/build/+/1685175

Change-Id: I8cec82ca445d5f54a2b3547da21a4af0cf79b4c3
parents c572c6dc 9488811f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -194,10 +194,8 @@ def BuildSuperImage(inp, out):
      return BuildSuperImageFromTargetFiles(inp, out)

    if os.path.isfile(inp):
      with open(inp) as f:
        lines = f.read()
      logger.info("Building super image from info dict...")
      return BuildSuperImageFromDict(common.LoadDictionaryFromLines(lines.split("\n")), out)
      return BuildSuperImageFromDict(common.LoadDictionaryFromFile(inp), out)

  raise ValueError("{} is not a dictionary or a valid path".format(inp))