diff --git a/src/index.ts b/src/index.ts index 9a7447f..8b89f1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,9 +2,8 @@ import {Command, flags} from '@oclif/command' import * as fs from 'fs-extra' import * as path from 'path' import * as os from 'os' -import {HydrusFile, lookupMetadata, HydrusApiInfo, addFile, deleteFiles, addTags, associateUrl, HydrusAddFileStatus, verifyAccessKey} from './hydrus-api' +import {lookupMetadata, HydrusApiInfo, addFile, deleteFiles, addTags, associateUrl, HydrusAddFileStatus, verifyAccessKey} from './hydrus-api' import {namespaceTagFromFile, serviceTags, getNamespace, getTagValue} from './tag-utils' -import * as util from 'util' import * as FileHound from 'filehound'; import * as sevenZip from '7zip-standalone/lib/7zip-standalone'; diff --git a/src/tag-utils.ts b/src/tag-utils.ts index 5121913..23e7142 100644 --- a/src/tag-utils.ts +++ b/src/tag-utils.ts @@ -25,9 +25,9 @@ export function tagsObjectFromFile(file: HydrusFile): ServiceNamesToStatusesToTa } function allKnownTags(serviceNamesTostatusesToTags: ServiceNamesToStatusesToTags) { - if (serviceNamesTostatusesToTags - && 'all known tags' in serviceNamesTostatusesToTags - && '0' in serviceNamesTostatusesToTags['all known tags']) { + if (serviceNamesTostatusesToTags && + 'all known tags' in serviceNamesTostatusesToTags && + '0' in serviceNamesTostatusesToTags['all known tags']) { return serviceNamesTostatusesToTags['all known tags']['0']; } return [];