Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 9253fc7

Browse files
committed
Provide a default for options
1 parent cfc7340 commit 9253fc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/models/repository-states/present.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ export default class Present extends State {
523523

524524
// Configuration
525525

526-
setConfig(setting, value, options) {
526+
setConfig(setting, value, options = {}) {
527527
return this.invalidate(
528528
() => Keys.config.eachWithSetting(setting),
529529
() => this.git().setConfig(setting, value, options),

lib/models/repository-states/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default class State {
213213

214214
// Configuration
215215

216-
async setConfig(optionName, value, options) {
216+
async setConfig(optionName, value, options = {}) {
217217
await this.workdirlessGit().setConfig(optionName, value, options);
218218
this.didUpdate();
219219
if (options.global) {

0 commit comments

Comments
 (0)