mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Use a default parameter.
This commit is contained in:
@@ -29,7 +29,7 @@ export default class GitRepositoryAsync {
|
||||
return 'GitRepositoryAsync.destroyed'
|
||||
}
|
||||
|
||||
constructor (_path, options) {
|
||||
constructor (_path, options = {}) {
|
||||
this.repo = null
|
||||
this.emitter = new Emitter()
|
||||
this.subscriptions = new CompositeDisposable()
|
||||
@@ -40,8 +40,6 @@ export default class GitRepositoryAsync {
|
||||
|
||||
this._refreshingCount = 0
|
||||
|
||||
options = options || {}
|
||||
|
||||
let {refreshOnWindowFocus = true} = options
|
||||
if (refreshOnWindowFocus) {
|
||||
const onWindowFocus = () => this.refreshStatus()
|
||||
|
||||
Reference in New Issue
Block a user