Switch to native string check

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-03-13 16:13:21 +00:00
parent f859d5025a
commit eccb1bd9ad
2 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@
import { OptionDefinition } from 'capitano';
import * as ent from 'ent';
import * as fs from 'fs';
import * as _ from 'lodash';
import * as readline from 'readline';
export function getOptionPrefix(signature: string) {
@ -40,7 +39,7 @@ export function parseCapitanoOption(option: OptionDefinition): string {
for (const alias of option.alias) {
result += `, ${getOptionSignature(alias)}`;
}
} else if (_.isString(option.alias)) {
} else if (typeof option.alias === 'string') {
result += `, ${getOptionSignature(option.alias)}`;
}

View File

@ -250,7 +250,7 @@ export class DeviceAPI {
// the `as string` shouldn't be necessary, but the type system
// is getting a little confused
url = (opts as ObjectWithUrl).url as string;
} else if (_.isString(opts)) {
} else if (typeof opts === 'string') {
url = opts;
}