質問編集履歴

3

見出しを変更

2018/08/15 22:08

投稿

huk66361
huk66361

スコア8

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ### 前提・実現したいこと
1
+ ### 実現したいこと
2
2
 
3
3
 
4
4
 

2

セミコロンを追加

2018/08/15 22:08

投稿

huk66361
huk66361

スコア8

test CHANGED
File without changes
test CHANGED
@@ -30,13 +30,13 @@
30
30
 
31
31
  if (inProgress) {
32
32
 
33
- nextBody = body
33
+ nextBody = body;
34
34
 
35
- return Promise.reject()
35
+ return Promise.reject();
36
36
 
37
37
  }
38
38
 
39
- inProgress = true
39
+ inProgress = true;
40
40
 
41
41
  return fetch("...", {
42
42
 
@@ -48,32 +48,32 @@
48
48
 
49
49
  .then(response => {
50
50
 
51
- return response.json()
51
+ return response.json();
52
52
 
53
53
  })
54
54
 
55
55
  .then(response => {
56
56
 
57
- inProgress = false
57
+ inProgress = false;
58
58
 
59
59
 
60
60
 
61
61
  if (nextBody) {
62
62
 
63
- const body = nextBody
63
+ const body = nextBody;
64
64
 
65
- nextBody = null
65
+ nextBody = null;
66
66
 
67
- return request(body)
67
+ return request(body);
68
68
 
69
69
  } else {
70
70
 
71
- return response
71
+ return response;
72
72
 
73
73
  }
74
74
 
75
- })
75
+ });
76
76
 
77
- }
77
+ };
78
78
 
79
79
  ```

1

タイトルを変更

2018/08/15 22:06

投稿

huk66361
huk66361

スコア8

test CHANGED
@@ -1 +1 @@
1
- fetch()を中断たい
1
+ fetch()を中断させたい
test CHANGED
File without changes