Permalink
Browse files

Linting.

  • Loading branch information...
Kelvin Wu
Kelvin Wu committed Jun 22, 2018
1 parent 70549e0 commit c9ac2ddf1dd1536349c7b62cb72860b4878e32f4
Showing with 13 additions and 3 deletions.
  1. +7 −2 src/command/parsers/ParameterParser.js
  2. +6 −1 src/command/parsers/Types.js
@@ -4,7 +4,12 @@ import { trimEnd, trimStart } from 'lodash/string';
import ParameterParserError from '../../errors/ParameterParserError';
import ParameterResolver from '../../resolvers/ParameterResolver';
import ParsedParameter from './ParsedParameter';
import { STRING, convertType, isType, resolveType } from './Types';
import {
STRING,
convertType,
isType,
resolveType,
} from './Types';
/**
* @typedef {Object} ParameterDefinition
@@ -64,7 +69,7 @@ export default class ParameterParser {
return parameters.map((parameter) => {
if (isString(parameter)) {
return new ParsedParameter(ParameterParser.parseParameter(parameter));
} else if (isPlainObject(parameter)) {
} if (isPlainObject(parameter)) {
return new ParsedParameter(resolver.resolve(parameter));
}
@@ -1,4 +1,9 @@
import { isNumber, isString, toInteger, toNumber } from 'lodash/lang';
import {
isNumber,
isString,
toInteger,
toNumber,
} from 'lodash/lang';
/**
* Boolean type.

0 comments on commit c9ac2dd

Please sign in to comment.