Remove some appending behavior from GN.

Remove operator += and -= to append/remove a non-list to/from a list. Now you will have to wrap a single item in [] if you want to add or remove it. This makes the syntax more uniform since people were doing it randomly with and without [].

This removes the error of assigning to an unused variable. This ended up being too much of a bother, and causing errors in cases were you wouldn't expect it.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/136723008

Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ff32a64e062e9a61047445f971167700dfb0a481
2 files changed
tree: 2e9a5861a5c3e1c199e1ce73d4150b9f140ba3d8
  1. tools/