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

Commit 9488811f 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

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

Change-Id: I746156252174442dbaa708b1e150ce5f2f453970
parents 0a1e0a59 f199d2d5
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))