Skip to content

Commit

Permalink
lint-fix: dealing with minor linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Feb 21, 2024
1 parent 2fe98e7 commit c2ab66b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/steps/all/core/20-dataflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const LEGACY_STATIC_DATAFLOW = {
...staticDataflowCommon,
humanReadableName: 'v1 dataflow',
processor: legacyProcessor,
requiredInput: {
requiredInput: {
request: undefined as unknown as RParseRequest
}
} as const satisfies DeepReadonly<IPipelineStep<'dataflow', typeof legacyProcessor>>
Expand Down
2 changes: 1 addition & 1 deletion src/r-bridge/lang-4.x/ast/parser/xml/common/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { guard } from '../../../../../../util/assert'
import type { NamedXmlBasedJson, XmlBasedJson} from './input-format'
import { XmlParseError, getKeyGuarded } from './input-format'
import type { XmlParserConfig } from './config'
import { XML_NAME } from './xml-to-json';
import { XML_NAME } from './xml-to-json'

/**
* if the passed object is an array with only one element, remove the array wrapper
Expand Down
4 changes: 2 additions & 2 deletions src/r-bridge/lang-4.x/ast/parser/xml/common/xml-to-json.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as xml2js from 'xml2js'
import { XmlParserConfig } from './config';
import { XmlBasedJson } from './input-format';
import type { XmlParserConfig } from './config'
import type { XmlBasedJson } from './input-format'

export const XML_NAME = '#name' as const

Expand Down
4 changes: 2 additions & 2 deletions src/r-bridge/lang-4.x/ast/parser/xml/v2/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const normalizeLog = log.getSubLogger({ name: 'v2-normalize' })
*
* @returns The normalized and decorated AST (i.e., as a doubly linked tree)
*/
export async function normalize(xmlString: string, tokenMap: TokenMap, getId: IdGenerator<NoInfo> = deterministicCountingIdGenerator(0)): Promise<NormalizedAst> {
export function normalize(xmlString: string, tokenMap: TokenMap, getId: IdGenerator<NoInfo> = deterministicCountingIdGenerator(0)): NormalizedAst {
const config: NormalizeConfiguration = { ...DEFAULT_XML_PARSER_CONFIG, tokenMap, currentLexeme: undefined }
const object = await xlm2jsonObject(config, xmlString)
const object = xlm2jsonObject(config, xmlString)

return decorateAst(normalizeRoot(config, object), getId)
}
Expand Down

0 comments on commit c2ab66b

Please sign in to comment.