mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:02:45 +08:00
REFACTOR: Replace _.extend
with Object.assign
This commit is contained in:
parent
2f11457263
commit
65f6a92129
|
@ -75,7 +75,7 @@ export default Component.extend({
|
|||
const expandDetailsKey = this.expandDetailsRequestKey;
|
||||
|
||||
if (this.expandDetails !== expandDetailsKey) {
|
||||
let headers = _.extend(
|
||||
let headers = Object.assign(
|
||||
{
|
||||
"Request URL": this.get("model.request_url"),
|
||||
"Request method": "POST"
|
||||
|
|
|
@ -305,7 +305,7 @@ export function relativeAge(date, options) {
|
|||
} else if (format === "medium-with-ago") {
|
||||
return relativeAgeMedium(
|
||||
date,
|
||||
_.extend(options, { format: "medium", leaveAgo: true })
|
||||
Object.assign(options, { format: "medium", leaveAgo: true })
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user