Skip to content

Commit a4fceb0

Browse files
committed
pretify code
1 parent 47c81f6 commit a4fceb0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/abstractions/src/multipartBody.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,13 @@ export function serializeMultipartBody(writer: SerializationWriter, multipartBod
113113
const boundary = multipartBody.getBoundary();
114114
let first = true;
115115
for (const partName in parts) {
116-
if (Object.prototype.hasOwnProperty.call(parts, partName)) { // Added guard
117-
if (first) {
118-
first = false;
119-
} else {
120-
writer.writeStringValue(undefined, "\r\n");
121-
}
116+
if (Object.prototype.hasOwnProperty.call(parts, partName)) {
117+
// Added guard
118+
if (first) {
119+
first = false;
120+
} else {
121+
writer.writeStringValue(undefined, "\r\n");
122+
}
122123
writer.writeStringValue(undefined, "--" + boundary);
123124
writer.writeStringValue(undefined, "\r\n");
124125
const part = parts[partName];

0 commit comments

Comments
 (0)