Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Modified sims module & overall improve speed. #353

Merged
merged 3 commits into from Jan 21, 2019

Conversation

Ali7862
Copy link
Collaborator

@Ali7862 Ali7862 commented Jan 21, 2019

No description provided.

@ijunaid8989 ijunaid8989 requested review from azharmalik3 and removed request for ijunaid8989 January 21, 2019 09:15
});
let status = "<span>Not Found.</span>"
let str = row.last_sms
let res = str.toLowerCase();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need str variable. Use let res = row.last_sms.toLowerCase();.

if (allowance_value == -1.0) {
yesterday_in_number = "-";
let volume_used_yesterday = row.volume_used_yesterday
if(volume_used_yesterday == '-1.0'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a common for this condition instead of repeat.

if (allowance_value == -1.0) {
percentage_used = "-";
let percentage_used = row.percentage_used
if(percentage_used == '-1.0'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same condition code lines.

if (allowance_value == -1.0) {
current_in_number = "-";
let volume_used = row.allowance
if(volume_used == '-1.0'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same condition code lines.

@Ali7862 Ali7862 merged commit 084ca3b into master Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants