Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix unicorn/no-unnecessary-boolean-comparison.

Anders Kaseorgd3845d12437f
diff --git a/zerver/openapi/javascript_examples.js b/zerver/openapi/javascript_examples.js
index fe8f7cab11f..b08778f7099 100644
--- a/zerver/openapi/javascript_examples.js
+++ b/zerver/openapi/javascript_examples.js
@@ -18,8 +18,8 @@ const examples_handler = function () {
const examples = {};
const response_data = [];
- const make_result_object = (example, result, count = false) => {
- const name = count !== false ? `${example.name}_${count}` : example.name;
+ const make_result_object = (example, result, count) => {
+ const name = count !== undefined ? `${example.name}_${count}` : example.name;
const [endpoint, method] = example.endpoint.split(":", 2);
return {
name,