summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/resources/serial_service.js
diff options
context:
space:
mode:
authorsammc <sammc@chromium.org>2014-09-10 17:52:33 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-11 00:54:12 +0000
commitda421fab9270e9fd48875f14e3ae9a001c6f0d77 (patch)
tree9a1dae677a164cefadfbfc23cf278b9fe32bdf59 /extensions/renderer/resources/serial_service.js
parentafd3e88bf107971191bc5f45d24f7ba3b8106854 (diff)
downloadchromium_src-da421fab9270e9fd48875f14e3ae9a001c6f0d77.zip
chromium_src-da421fab9270e9fd48875f14e3ae9a001c6f0d77.tar.gz
chromium_src-da421fab9270e9fd48875f14e3ae9a001c6f0d77.tar.bz2
Make some fields non-nullable in serial.mojom and data_stream.mojom.
This also removes some null checks for the now non-nullable fields. BUG=407683 Review URL: https://codereview.chromium.org/562563002 Cr-Commit-Position: refs/heads/master@{#294277}
Diffstat (limited to 'extensions/renderer/resources/serial_service.js')
-rw-r--r--extensions/renderer/resources/serial_service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/renderer/resources/serial_service.js b/extensions/renderer/resources/serial_service.js
index 60b0afd..0e0327d 100644
--- a/extensions/renderer/resources/serial_service.js
+++ b/extensions/renderer/resources/serial_service.js
@@ -30,7 +30,7 @@ define('serial_service', [
function getDevices() {
return service.getDevices().then(function(response) {
return $Array.map(response.devices, function(device) {
- var result = {path: device.path || ''};
+ var result = {path: device.path};
if (device.has_vendor_id)
result.vendorId = device.vendor_id;
if (device.has_product_id)