Skip to content

Commit c099e5e

Browse files
committed
空仓库,无法新建文件
1 parent 5f13c59 commit c099e5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Coding_iOS/Models/CodeFile.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ - (NSDictionary *)toDeleteParams{
9595
- (NSDictionary *)toCreateParams{
9696
NSMutableDictionary *params = @{}.mutableCopy;
9797
params[@"title"] = self.editName;
98-
params[@"content"] = self.editData;
98+
params[@"content"] = self.editData ?: @"";
9999
params[@"message"] = self.editMessage;
100-
params[@"lastCommitSha"] = self.headCommit.commitId;
100+
params[@"lastCommitSha"] = self.headCommit.commitId ?: @"";
101101
return params;
102102
}
103103
@end

0 commit comments

Comments
 (0)