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

Commit 84a6ea9

Browse files
teresygkalpak
authored andcommitted
refactor(production): remove duplicate expression
Remove a duplicate expression (the left and right sides both check `versionInfo.currentVersion.version`). [48f0957](https://github.com/angular/angular.js/blob/48f0957dde728b050e2d8f76db81cbf12cffd42a/docs/config/services/deployments/production.js#L18) is the most recent commit I found where these expressions differ. My best guess is the duplicated expression can be removed. Closes #16738
1 parent ff0ef2a commit 84a6ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/config/services/deployments/production.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var cdnUrl = googleCdnUrl + versionInfo.cdnVersion;
1515
// docs.angularjs.org and code.angularjs.org need them.
1616
var versionPath = versionInfo.currentVersion.isSnapshot ?
1717
'snapshot' :
18-
(versionInfo.currentVersion.version || versionInfo.currentVersion.version);
18+
versionInfo.currentVersion.version;
1919
var examplesDependencyPath = angularCodeUrl + versionPath + '/';
2020

2121
module.exports = function productionDeployment(getVersion) {

0 commit comments

Comments
 (0)