Skip to content

Commit c9dd9e2

Browse files
committed
chore: remove unnecessary fallback
1 parent 35b31c7 commit c9dd9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/client.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Client {
139139

140140
const warnings = response.headers.get('x-{{ spec.title | lower }}-warning');
141141
if (warnings) {
142-
warnings.split(';').forEach((warning) => console.log(`${chalk.yellow.bold("ℹ Warning:")} ${chalk.yellow(warning ?? "")}`));
142+
warnings.split(';').forEach((warning) => console.log(`${chalk.yellow.bold("ℹ Warning:")} ${chalk.yellow(warning)}`));
143143
}
144144
} catch (error) {
145145
throw new {{spec.title | caseUcfirst}}Exception(error.message);

0 commit comments

Comments
 (0)