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

Commit 62f5f71

Browse files
committed
Use existing getActiveWorkdir() method
1 parent 4183766 commit 62f5f71

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/github-package.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export default class GithubPackage {
266266

267267
serialize() {
268268
return {
269-
activeRepositoryPath: this.getActiveRepositoryPath(),
269+
activeRepositoryPath: this.getActiveWorkdir(),
270270
contextLocked: Boolean(this.lockedContext),
271271
newProject: false,
272272
};
@@ -506,14 +506,6 @@ export default class GithubPackage {
506506
return this.activeContext.getRepository();
507507
}
508508

509-
getActiveRepositoryPath() {
510-
const activeRepository = this.activeContext.getRepository();
511-
if (!activeRepository) {
512-
return null;
513-
}
514-
return activeRepository.getWorkingDirectoryPath();
515-
}
516-
517509
getActiveResolutionProgress() {
518510
return this.activeContext.getResolutionProgress();
519511
}

0 commit comments

Comments
 (0)