File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/babel-generator/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function findCommonStringDelimiter(code, tokens) {
99
99
return DEFAULT_STRING_DELIMITER ;
100
100
}
101
101
102
- const occurences = {
102
+ const occurrences = {
103
103
single : 0 ,
104
104
double : 0
105
105
} ;
@@ -112,15 +112,15 @@ function findCommonStringDelimiter(code, tokens) {
112
112
113
113
const raw = code . slice ( token . start , token . end ) ;
114
114
if ( raw [ 0 ] === "'" ) {
115
- occurences . single ++ ;
115
+ occurrences . single ++ ;
116
116
} else {
117
- occurences . double ++ ;
117
+ occurrences . double ++ ;
118
118
}
119
119
120
120
checked ++ ;
121
121
if ( checked >= 3 ) break ;
122
122
}
123
- if ( occurences . single > occurences . double ) {
123
+ if ( occurrences . single > occurrences . double ) {
124
124
return "single" ;
125
125
} else {
126
126
return "double" ;
You can’t perform that action at this time.
0 commit comments