1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Default to null operator if none can be found. Easier to work with than undefined.

This commit is contained in:
Simo Kinnunen 2014-02-03 03:13:01 +09:00
parent 55bdd4aecb
commit 483bf1be7a
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ devutil.makeIdentity = function(serial, properties) {
serial: serial serial: serial
, platform: 'Android' , platform: 'Android'
, manufacturer: manufacturer.toUpperCase() , manufacturer: manufacturer.toUpperCase()
, operator: operator , operator: operator || null
, model: model , model: model
, version: version , version: version
, abi: abi , abi: abi

View file

@ -74,7 +74,7 @@ message DeviceIdentityMessage {
required string serial = 1; required string serial = 1;
required string platform = 2; required string platform = 2;
required string manufacturer = 3; required string manufacturer = 3;
required string operator = 4; optional string operator = 4;
required string model = 5; required string model = 5;
required string version = 6; required string version = 6;
required string abi = 7; required string abi = 7;