Skip to content

Conversation

@Sam-Mear
Copy link
Contributor

Bit to review is the commit from yesterday, the other is just removing it from the specs

const debug = require('debug')('specdb.combine-specs');
const util = require('./util');
const combineUtil = require('./combine-util');
const specTypes = ['CPU', 'Graphics Card', 'APU'];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of repeatedly calling specTypes.includes let's have a separate helper function eg isPart(v)

@markasoftware
Copy link
Owner

markasoftware commented Sep 18, 2025

let's not duplicate the isPart function between two places, just put it in pure.js only

Copy link
Owner

@markasoftware markasoftware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm just one tiny comment

'https://specdb.info/about',
];
const dynamicSitemapUrls = Object.keys(_.pickBy(toReturn, v => v.isPart)).map(c => `https://specdb.info/${c}`);
const dynamicSitemapUrls = Object.keys(_.pickBy(toReturn, v => pure.isPart(v))).map(c => `https://specdb.info/${c}`);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v => pure.isPart(v) can be reduced to just pure.isPart

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh okay. Thanks for being patient, you can probably tell I only do JS for spec db, never done it otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants