Skip to content

Commit

Permalink
getting back to normal with changes
Browse files Browse the repository at this point in the history
Signed-off-by: Amber <[email protected]>
  • Loading branch information
ATorrise committed Nov 5, 2024
1 parent ab791ec commit 1b793ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ describe("Command Processor", () => {
arguments: {
_: ["sample", "cmd", "--help"],
$0: "",
valid: false
valid: true
}
};

const versionParms: any = {
arguments: {
_: ["sample", "cmd", "--version"],
$0: "",
valid: false
valid: true
}
};

Expand Down
4 changes: 2 additions & 2 deletions packages/imperative/src/config/src/api/ConfigLayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ConfigLayers extends ConfigApi {
* @param opts The user and global flags that indicate which of the four
* config files (aka layers) is to be read.
*/
public read(opts?: { user: boolean; global: boolean; ignoreErrors: boolean}) {
public read(opts?: { user: boolean; global: boolean; ignoreErrors?: boolean}) {
// Attempt to populate the layer
const layer = opts ? this.mConfig.findLayer(opts.user, opts.global) : this.mConfig.layerActive();
if (fs.existsSync(layer.path)) {
Expand All @@ -53,7 +53,7 @@ export class ConfigLayers extends ConfigApi {
} catch (e) {
const msg = `Error parsing JSON in the file '${layer.path}'.\n` +
`Please check this configuration file for errors.\nError details: ${e.message}\nLine ${e.line}, Column ${e.column}`;
if (!opts.ignoreErrors){
if (!opts?.ignoreErrors){
throw new ImperativeError({
msg:msg,
suppressDump: true
Expand Down

0 comments on commit 1b793ac

Please sign in to comment.