Fix typo that was causing right side of diff to not render during tests

Since undefined == undefined and diff.change_type is not defined during
tests, it was toggling the leftOnly class. YAY UNTYPED LANGUAGES.

Change-Id: If55daa29eb7a7303ff0b55f1aff8423990947733
This commit is contained in:
Andrew Bonventre 2015-11-23 17:42:22 -05:00
parent df384d5b75
commit d3cc91b69a

View File

@ -362,7 +362,7 @@ limitations under the License.
this.$.diffContainer.classList.toggle('rightOnly',
diff.change_type == Changes.DiffType.ADDED);
this.$.diffContainer.classList.toggle('leftOnly',
diff.change_type == Changes.DiffType.REMOVED);
diff.change_type == Changes.DiffType.DELETED);
var initialLineNum = 0 + (diff.content.skip || 0);
var ctx = {