Skip to content
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

Minor lint tweaks #820

Merged
merged 1 commit into from Oct 6, 2021
Merged

Minor lint tweaks #820

merged 1 commit into from Oct 6, 2021

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented Oct 6, 2021

  • use String.startsWith
  • use String.includes

@@ -21,7 +21,7 @@ const gulpSass = (options, sync) => transfob((file, enc, cb) => { // eslint-disa
return cb(new PluginError(PLUGIN_NAME, 'Streaming not supported'));
}

if (path.basename(file.path).indexOf('_') === 0) {
if (path.basename(file.path).startsWith('_')) {
Copy link
Contributor Author

@XhmikosR XhmikosR Oct 6, 2021

Choose a reason for hiding this comment

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

path.basename(file.path) cannot be null/undefined here AFAICT so this should be fine.

@XhmikosR XhmikosR marked this pull request as ready for review October 6, 2021 06:35
* use `String.startsWith`
* use `String.includes`
@xzyfer xzyfer merged commit bf2fe9e into dlmanning:master Oct 6, 2021
@xzyfer
Copy link
Collaborator

xzyfer commented Oct 6, 2021

Thanks

@XhmikosR XhmikosR deleted the lint branch October 6, 2021 07:18
@XhmikosR
Copy link
Contributor Author

XhmikosR commented Oct 6, 2021

Will you cut a new version too?

@xzyfer
Copy link
Collaborator

xzyfer commented Oct 6, 2021

Yes I will tomorrow when I'm on a development machine.

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.

None yet

2 participants