Skip to content

Commit 5f4f26a

Browse files
committed
fix: apply clang-format and resolve merge conflict
Signed-off-by: ParasSalonia <parassalonia22@gmail.com>
1 parent 6f7326c commit 5f4f26a

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/tck/src/file/FileService.cc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ nlohmann::json appendFile(const AppendFileParams& params)
6969
}
7070

7171
return {
72-
{"status",
72+
{ "status",
7373
gStatusToString.at(
74-
fileAppendTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()).mStatus)}
74+
fileAppendTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()).mStatus) }
7575
};
7676
}
7777

@@ -117,8 +117,8 @@ nlohmann::json createFile(const CreateFileParams& params)
117117
fileCreateTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient());
118118

119119
return {
120-
{"fileId", txReceipt.mFileId.value().toString() },
121-
{ "status", gStatusToString.at(txReceipt.mStatus)}
120+
{ "fileId", txReceipt.mFileId.value().toString() },
121+
{ "status", gStatusToString.at(txReceipt.mStatus) }
122122
};
123123
}
124124

@@ -139,9 +139,9 @@ nlohmann::json deleteFile(const DeleteFileParams& params)
139139
}
140140

141141
return {
142-
{"status",
142+
{ "status",
143143
gStatusToString.at(
144-
fileDeleteTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()).mStatus)}
144+
fileDeleteTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()).mStatus) }
145145
};
146146
}
147147

@@ -169,7 +169,7 @@ nlohmann::json getFileContents(const GetFileContentsParams& params)
169169
const std::vector<std::byte> contents = query.execute(SdkClient::getClient());
170170

171171
return {
172-
{"contents", internal::Utilities::byteVectorToString(contents)}
172+
{ "contents", internal::Utilities::byteVectorToString(contents) }
173173
};
174174
}
175175

@@ -203,8 +203,7 @@ nlohmann::json getFileInfo(const GetFileInfoParams& params)
203203
response["keys"] = nlohmann::json::array();
204204
if (!info.mAdminKeys.empty())
205205
{
206-
response["keys"].push_back(
207-
internal::HexConverter::bytesToHex(info.mAdminKeys.toBytes()));
206+
response["keys"].push_back(internal::HexConverter::bytesToHex(info.mAdminKeys.toBytes()));
208207
}
209208
return response;
210209
}
@@ -257,7 +256,7 @@ nlohmann::json updateFile(const UpdateFileParams& params)
257256
fileUpdateTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient());
258257

259258
return {
260-
{"status", gStatusToString.at(txReceipt.mStatus)}
259+
{ "status", gStatusToString.at(txReceipt.mStatus) }
261260
};
262261
}
263262

0 commit comments

Comments
 (0)