Skip to content

Commit

Permalink
Updated name of some variables
Browse files Browse the repository at this point in the history
Updated name in ffw/BasicCommunicationRPC.js:
 - requstedData -> requestedData
 - dataToremove -> dataToRemove
  • Loading branch information
valerii committed Aug 16, 2019
1 parent 7130ea0 commit ad93db4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ffw/BasicCommunicationRPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ FFW.BasicCommunication = FFW.RPCObserver
if(response.result.method == 'SDL.GetPolicyConfigurationData') {
var policyConfigRequestsData = SDL.SDLModel.data.getPolicyConfigurationDataRequestsList;
var dataToremove = null;
policyConfigRequestsData.forEach(requstedData => {
if(requstedData.id == response.id) {
dataToremove = requstedData;
policyConfigRequestsData.forEach(requestedData => {
if(requestedData.id == response.id) {
dataToremove = requestedData;

var resultCode = SDL.SDLModel.data.resultCode;
if(response.result.code !== resultCode.SUCCESS) {
Expand All @@ -203,8 +203,8 @@ FFW.BasicCommunication = FFW.RPCObserver
var data = JSON.parse(element);
if(typeof data === 'object') {
for(key in data) {
if(requstedData.nestedProperty == key &&
requstedData.property == 'endpoint_properties') {
if(requestedData.nestedProperty == key &&
requestedData.property == 'endpoint_properties') {
policyConfigData.forEach(configData => {
if(undefined !== configData[key] &&
data[key]['version'] !== configData[key]['version']) {
Expand All @@ -217,8 +217,8 @@ FFW.BasicCommunication = FFW.RPCObserver
}
})
}
else if (requstedData.nestedProperty == key &&
requstedData.property == 'endpoints') {
else if (requestedData.nestedProperty == key &&
requestedData.property == 'endpoints') {
if(undefined !== data[key]) {
if(key == 'custom_vehicle_data_mapping_url') {
var fileName = "/tmp/fs/mp/images/ivsu_cache/oemMappingTable.json";
Expand Down

0 comments on commit ad93db4

Please sign in to comment.