Skip to content

Commit 68939f6

Browse files
committed
improvement: move the expected status variable to outside the global scope
1 parent 5506a68 commit 68939f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/is-created.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import validateHttpStatus from './validate-http-status';
22

3-
const EXPECTED_STATUS = 201;
4-
53
function isCreated(status) {
4+
const EXPECTED_STATUS = 201;
65
return validateHttpStatus(status, EXPECTED_STATUS);
76
}
87

0 commit comments

Comments
 (0)