W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > August 2016

[web-bluetooth] Pull Request: Fix nit in example code

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 Aug 2016 07:08:02 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <pull_request.opened-80198587-1470380880-sysbot+gh@w3.org>
beaufortfrancois has just submitted a new pull request for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Fix nit in example code ==
I believe `sessionStorage.lastDevice` is unique, therefore it makes 
more sense to check for `length == 1`. Even if not, it should be at 
least `length >= 1` not `length > 1`

R=@jyasskin

See https://github.com/WebBluetoothCG/web-bluetooth/pull/268
Received on Friday, 5 August 2016 07:08:09 UTC

This archive was generated by hypermail 2.3.1 : Friday, 5 August 2016 07:08:09 UTC