File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -88,25 +88,9 @@ export class HackMDFsProvider implements vscode.FileSystemProvider {
8888 throw vscode . FileSystemError . FileNotFound ( ) ;
8989 }
9090
91- let teamPath ;
92-
93- try {
94- const note = await API . getNote ( noteId ) ;
95-
96- teamPath = note . teamPath ;
97- } catch ( e ) {
98- console . error ( e ) ;
99- throw vscode . FileSystemError . FileNotFound ( ) ;
100- }
101-
102- const contentString = Buffer . from ( content ) . toString ( ) ;
103-
10491 try {
105- if ( teamPath ) {
106- await API . updateTeamNoteContent ( teamPath , noteId , contentString ) ;
107- } else {
108- await API . updateNoteContent ( noteId , contentString ) ;
109- }
92+ const contentString = Buffer . from ( content ) . toString ( ) ;
93+ await API . updateNoteContent ( noteId , contentString ) ;
11094 } catch ( e ) {
11195 console . error ( e ) ;
11296 throw vscode . FileSystemError . Unavailable ( ) ;
You can’t perform that action at this time.
0 commit comments