Settings Screens: Null safety++

This commit is contained in:
Vishesh Handa
2021-05-27 13:19:20 +02:00
parent 8c326399bd
commit 789a0b1208
5 changed files with 54 additions and 54 deletions

View File

@ -100,7 +100,7 @@ class GitNoteRepository {
}
Future<NoteRepoResult> addFolderConfig(NotesFolderConfig config) async {
var pathSpec = config.folder.pathSpec();
var pathSpec = config.folder!.pathSpec();
pathSpec = pathSpec.isNotEmpty ? pathSpec : '/';
await _add(".");
@ -110,7 +110,8 @@ class GitNoteRepository {
authorName: settings.gitAuthor,
);
return NoteRepoResult(noteFilePath: config.folder.folderPath, error: false);
return NoteRepoResult(
noteFilePath: config.folder!.folderPath, error: false);
}
Future<NoteRepoResult> renameFolder(