Skip to content

Commit

Permalink
Fix some syntax and formatting, remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
floogulinc committed Jul 16, 2021
1 parent a2016df commit 454833f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
6 changes: 3 additions & 3 deletions src/tag-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 454833f

Please sign in to comment.