Skip to content

Commit 60f3e51

Browse files
Lint fixes
1 parent a656361 commit 60f3e51

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

cli/targets/proto.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ function buildFieldOptions(field) {
257257
});
258258
var packable = types.packed[field.resolvedType instanceof Enum ? "int32" : field.type];
259259
if (packable !== undefined) {
260-
if (field.packed && syntax == 2) {
260+
if (field.packed && syntax === 2) {
261261
sb.push("packed=true");
262-
} else if(!field.packed && syntax == 3) {
262+
} else if(!field.packed && syntax === 3) {
263263
sb.push("packed=false");
264264
}
265265
}

cli/targets/static.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function toJsType(field, parentIsInterface = false) {
363363
}
364364

365365
function isNullable(field) {
366-
return field.hasPresence && !field.required
366+
return field.hasPresence && !field.required;
367367
}
368368

369369
function buildType(ref, type) {

src/field.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Field.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(e
375375
features.repeated_field_encoding = "EXPANDED";
376376
}
377377
return features;
378-
}
378+
};
379379

380380
/**
381381
* Decorator function as returned by {@link Field.d} and {@link MapField.d} (TypeScript).

src/object.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ ReflectionObject.prototype._resolveFeatures = function _resolveFeatures() {
216216
* in older editions.
217217
* @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions
218218
* @returns {object} The feature values to override
219+
* @abstract
219220
*/
220-
ReflectionObject.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(edition) {
221+
ReflectionObject.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(/*edition*/) {
221222
return {};
222-
}
223+
};
223224

224225
/**
225226
* Gets an option value.

0 commit comments

Comments
 (0)