-
Notifications
You must be signed in to change notification settings - Fork 13
Remove ispart #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: beta
Are you sure you want to change the base?
Remove ispart #95
Conversation
build/combine-specs.js
Outdated
| const debug = require('debug')('specdb.combine-specs'); | ||
| const util = require('./util'); | ||
| const combineUtil = require('./combine-util'); | ||
| const specTypes = ['CPU', 'Graphics Card', 'APU']; |
There was a problem hiding this comment.
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)
|
let's not duplicate the |
There was a problem hiding this 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}`); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Bit to review is the commit from yesterday, the other is just removing it from the specs