Skip to content

Commit 0f61e43

Browse files
AE-Hertzidoocs
authored andcommitted
style: format code and docs with prettier
1 parent 2f84e7f commit 0f61e43

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

solution/0500-0599/0592.Fraction Addition and Subtraction/README_EN.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,17 @@ func gcd(a, b int) int {
171171
return gcd(b, a%b)
172172
}
173173
```
174+
174175
#### JavaScript
176+
175177
```js
176178
/**
177179
* @param {string} expression
178180
* @return {string}
179181
*/
180-
var fractionAddition = function(expression) {
181-
let x = 0, y = 1;
182+
var fractionAddition = function (expression) {
183+
let x = 0,
184+
y = 1;
182185

183186
if (!expression.startsWith('-') && !expression.startsWith('+')) {
184187
expression = '+' + expression;
@@ -215,8 +218,8 @@ var fractionAddition = function(expression) {
215218

216219
return `${x}/${y}`;
217220
};
218-
219221
```
222+
220223
<!-- tabs:end -->
221224

222225
<!-- solution:end -->

solution/0500-0599/0592.Fraction Addition and Subtraction/Solution.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
* @param {string} expression
33
* @return {string}
44
*/
5-
var fractionAddition = function(expression) {
6-
let x = 0, y = 1;
5+
var fractionAddition = function (expression) {
6+
let x = 0,
7+
y = 1;
78

89
if (!expression.startsWith('-') && !expression.startsWith('+')) {
910
expression = '+' + expression;

0 commit comments

Comments
 (0)