From 3632bba7c95d631bec151d0789a483e7852bf8b9 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2020 11:48:36 +0000 Subject: [PATCH 1/2] Bump prettier from 2.1.2 to 2.2.1 Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.1) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd43f3125..d67eabde5 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "postcss-loader": "^3.0.0", "postcss-preset-env": "^6.7.0", "postcss-url": "^9.0.0", - "prettier": "2.1.2", + "prettier": "2.2.1", "sinon": "^9.0.1", "stylelint": "^13.1.0", "stylelint-config-standard": "^20.0.0", From ec6f47dc480d30a2670c5209ce6f996551374040 Mon Sep 17 00:00:00 2001 From: Ksenia Berezina Date: Mon, 7 Dec 2020 11:07:48 -0500 Subject: [PATCH 2/2] No bug: prettier 2.2.1 update changes --- webcompat/static/js/lib/models/milestones.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/webcompat/static/js/lib/models/milestones.js b/webcompat/static/js/lib/models/milestones.js index 27fd942e7..11d40f017 100644 --- a/webcompat/static/js/lib/models/milestones.js +++ b/webcompat/static/js/lib/models/milestones.js @@ -49,11 +49,12 @@ export const MilestonesModel = Backbone.Model.extend({ type: "PATCH", url: "/api/issues/" + $("main").data("issueNumber") + "/edit", success: _.bind(function () { - var currentMilestone = _.find(this.get("milestones"), function ( - status - ) { - return status.id === statusObject.id; - }); + var currentMilestone = _.find( + this.get("milestones"), + function (status) { + return status.id === statusObject.id; + } + ); this.set("milestone", currentMilestone); this.issueModel.set("milestone", currentMilestone.name);