Skip to content

Commit

Permalink
Optimize existence check a microscopic bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Martii committed Nov 30, 2017
1 parent 72c4f24 commit 18ffd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1909,8 +1909,8 @@ exports.editScript = function (aReq, aRes, aNext) {
copyrightPrimary = copyrights[copyrights.length - 1];
script.copyrightPrimary = copyrightPrimary;
} else {
sinceDate = new Date(script._sinceISOFormat);
if (authedUser) {
sinceDate = new Date(script._sinceISOFormat);
script.copyrightPrimary = sinceDate.getFullYear() + ', ' + authedUser.name
+ ' (https://openuserjs.org' + authedUser.userPageUrl + ')';
}
Expand Down

0 comments on commit 18ffd06

Please sign in to comment.