2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Using more strict eslint rules

This commit is contained in:
Matt Zabriskie
2015-12-14 20:06:57 -07:00
parent 2b147fb0b7
commit f28a4a8248
16 changed files with 230 additions and 93 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ module.exports = (
utils.isStandardBrowserEnv() ?
// Standard browser envs support document.cookie
(function () {
(function standardBrowserEnv() {
return {
write: function write(name, value, expires, path, domain, secure) {
var cookie = [];
@@ -43,7 +43,7 @@ module.exports = (
})() :
// Non standard browser env (web workers, react-native) lack needed support.
(function () {
(function nonStandardBrowserEnv() {
return {
write: function write() {},
read: function read() { return null; },