mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
refactor: use an object spread instead of Object.assign (#6939)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
committed by
GitHub
parent
07183cd149
commit
a1d16dd9c5
+4
-3
@@ -24,9 +24,10 @@ class RepoBot {
|
||||
templates
|
||||
} = options || {};
|
||||
|
||||
this.templates = Object.assign({
|
||||
published: NOTIFY_PR_TEMPLATE
|
||||
}, templates);
|
||||
this.templates = {
|
||||
published: NOTIFY_PR_TEMPLATE,
|
||||
...templates
|
||||
};
|
||||
|
||||
this.github = api || new GithubAPI(owner, repo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user