Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Removing pointless * 1s #6206

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/content/guide/concepts.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ different currencies and also pay the invoice.
return this.convertCurrency(this.qty * this.cost, this.inCurr, outCurr);
};
this.convertCurrency = function convertCurrency(amount, inCurr, outCurr) {
return amount * this.usdToForeignRates[outCurr] * 1 / this.usdToForeignRates[inCurr];
return amount * this.usdToForeignRates[outCurr] / this.usdToForeignRates[inCurr];
};
this.pay = function pay() {
window.alert("Thanks!");
Expand Down Expand Up @@ -207,7 +207,7 @@ Let's refactor our example and move the currency conversion into a service in an
};

function convert(amount, inCurr, outCurr) {
return amount * usdToForeignRates[outCurr] * 1 / usdToForeignRates[inCurr];
return amount * usdToForeignRates[outCurr] / usdToForeignRates[inCurr];
}
});
</file>
Expand Down Expand Up @@ -336,7 +336,7 @@ The following example shows how this is done with Angular:
};

function convert(amount, inCurr, outCurr) {
return amount * usdToForeignRates[outCurr] * 1 / usdToForeignRates[inCurr];
return amount * usdToForeignRates[outCurr] / usdToForeignRates[inCurr];
}

function refresh() {
Expand Down