Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JivusAyrus committed Oct 22, 2024
1 parent cc9b708 commit 8d42167
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cli/src/commands/subgraph/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ export default (opts: BaseCommandOptions) => {
},
);

const compositionWarningsTable = new Table({
head: [
pc.bold(pc.white('FEDERATED_GRAPH_NAME')),
pc.bold(pc.white('NAMESPACE')),
pc.bold(pc.white('FEATURE_FLAG')),
pc.bold(pc.white('WARNING_MESSAGE')),
],
colWidths: [30, 30, 30, 120],
wordWrap: true,
});
const compositionWarningsTable = new Table({
head: [
pc.bold(pc.white('FEDERATED_GRAPH_NAME')),
pc.bold(pc.white('NAMESPACE')),
pc.bold(pc.white('FEATURE_FLAG')),
pc.bold(pc.white('WARNING_MESSAGE')),
],
colWidths: [30, 30, 30, 120],
wordWrap: true,
});

switch (resp.response?.code) {
case EnumStatusCode.OK: {
Expand Down Expand Up @@ -210,7 +210,7 @@ export default (opts: BaseCommandOptions) => {
process.exit(1);
}
}

if (resp.compositionWarnings.length > 0) {
console.log(pc.yellow(`We found composition warnings.\n${pc.bold('Please check the warnings below:')}`));
for (const compositionWarning of resp.compositionWarnings) {
Expand Down

0 comments on commit 8d42167

Please sign in to comment.