We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f13c59 commit c099e5eCopy full SHA for c099e5e
1 file changed
Coding_iOS/Models/CodeFile.m
@@ -95,9 +95,9 @@ - (NSDictionary *)toDeleteParams{
95
- (NSDictionary *)toCreateParams{
96
NSMutableDictionary *params = @{}.mutableCopy;
97
params[@"title"] = self.editName;
98
- params[@"content"] = self.editData;
+ params[@"content"] = self.editData ?: @"";
99
params[@"message"] = self.editMessage;
100
- params[@"lastCommitSha"] = self.headCommit.commitId;
+ params[@"lastCommitSha"] = self.headCommit.commitId ?: @"";
101
return params;
102
}
103
@end
0 commit comments