@@ -619,29 +619,29 @@ export class Repository {
619619 }
620620
621621 async addFiles ( files : string [ ] ) {
622- return await this . run ( Operation . Add , ( ) => this . repository . addFiles ( files ) ) ;
622+ return this . run ( Operation . Add , ( ) => this . repository . addFiles ( files ) ) ;
623623 }
624624
625625 async addChangelist ( files : string [ ] , changelist : string ) {
626- return await this . run ( Operation . AddChangelist , ( ) =>
626+ return this . run ( Operation . AddChangelist , ( ) =>
627627 this . repository . addChangelist ( files , changelist )
628628 ) ;
629629 }
630630
631631 async removeChangelist ( files : string [ ] ) {
632- return await this . run ( Operation . RemoveChangelist , ( ) =>
632+ return this . run ( Operation . RemoveChangelist , ( ) =>
633633 this . repository . removeChangelist ( files )
634634 ) ;
635635 }
636636
637637 async getCurrentBranch ( ) {
638- return await this . run ( Operation . CurrentBranch , async ( ) => {
638+ return this . run ( Operation . CurrentBranch , async ( ) => {
639639 return this . repository . getCurrentBranch ( ) ;
640640 } ) ;
641641 }
642642
643643 async branch ( name : string ) {
644- return await this . run ( Operation . NewBranch , async ( ) => {
644+ return this . run ( Operation . NewBranch , async ( ) => {
645645 await this . repository . branch ( name ) ;
646646 this . updateNewCommits ( ) ;
647647 } ) ;
@@ -655,57 +655,55 @@ export class Repository {
655655 }
656656
657657 async updateRevision ( ignoreExternals : boolean = false ) : Promise < string > {
658- return await this . run < string > ( Operation . Update , async ( ) => {
658+ return this . run < string > ( Operation . Update , async ( ) => {
659659 const response = await this . repository . update ( ignoreExternals ) ;
660660 this . updateNewCommits ( ) ;
661661 return response ;
662662 } ) ;
663663 }
664664
665665 async resolve ( files : string [ ] , action : string ) {
666- return await this . run ( Operation . Resolve , ( ) =>
666+ return this . run ( Operation . Resolve , ( ) =>
667667 this . repository . resolve ( files , action )
668668 ) ;
669669 }
670670
671671 async commitFiles ( message : string , files : any [ ] ) {
672- return await this . run ( Operation . Commit , ( ) =>
672+ return this . run ( Operation . Commit , ( ) =>
673673 this . repository . commitFiles ( message , files )
674674 ) ;
675675 }
676676
677677 async revert ( files : string [ ] ) {
678- return await this . run ( Operation . Revert , ( ) =>
679- this . repository . revert ( files )
680- ) ;
678+ return this . run ( Operation . Revert , ( ) => this . repository . revert ( files ) ) ;
681679 }
682680
683681 async patch ( files : string [ ] ) {
684- return await this . run ( Operation . Patch , ( ) => this . repository . patch ( files ) ) ;
682+ return this . run ( Operation . Patch , ( ) => this . repository . patch ( files ) ) ;
685683 }
686684
687685 async patchChangelist ( changelistName : string ) {
688- return await this . run ( Operation . Patch , ( ) =>
686+ return this . run ( Operation . Patch , ( ) =>
689687 this . repository . patchChangelist ( changelistName )
690688 ) ;
691689 }
692690
693691 async removeFiles ( files : any [ ] , keepLocal : boolean ) {
694- return await this . run ( Operation . Remove , ( ) =>
692+ return this . run ( Operation . Remove , ( ) =>
695693 this . repository . removeFiles ( files , keepLocal )
696694 ) ;
697695 }
698696
699697 async log ( ) {
700- return await this . run ( Operation . Log , ( ) => this . repository . log ( ) ) ;
698+ return this . run ( Operation . Log , ( ) => this . repository . log ( ) ) ;
701699 }
702700
703701 async cleanup ( ) {
704- return await this . run ( Operation . CleanUp , ( ) => this . repository . cleanup ( ) ) ;
702+ return this . run ( Operation . CleanUp , ( ) => this . repository . cleanup ( ) ) ;
705703 }
706704
707705 async finishCheckout ( ) {
708- return await this . run ( Operation . SwitchBranch , ( ) =>
706+ return this . run ( Operation . SwitchBranch , ( ) =>
709707 this . repository . finishCheckout ( )
710708 ) ;
711709 }
@@ -715,21 +713,21 @@ export class Repository {
715713 directory : string ,
716714 recursive : boolean = false
717715 ) {
718- return await this . run ( Operation . Ignore , ( ) =>
716+ return this . run ( Operation . Ignore , ( ) =>
719717 this . repository . addToIgnore ( expressions , directory , recursive )
720718 ) ;
721719 }
722720
723721 async rename ( oldFile : string , newFile : string ) {
724- return await this . run ( Operation . Rename , ( ) =>
722+ return this . run ( Operation . Rename , ( ) =>
725723 this . repository . rename ( oldFile , newFile )
726724 ) ;
727725 }
728726
729727 async promptAuth ( ) : Promise < boolean | undefined > {
730728 // Prevent multiple prompts for auth
731729 if ( this . lastPromptAuth ) {
732- return await this . lastPromptAuth ;
730+ return this . lastPromptAuth ;
733731 }
734732
735733 this . lastPromptAuth = commands . executeCommand ( "svn.promptAuth" ) ;
0 commit comments