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

Update XO #7374

Merged
merged 14 commits into from
May 31, 2024
Merged

Update XO #7374

merged 14 commits into from
May 31, 2024

Conversation

fregante
Copy link
Member

@@ -58,7 +58,7 @@ class FeatureFile {
return existsSync(this.path);
}

// eslint-disable-next-line n/prefer-global/buffer -- Type only
// eslint-disable-next-line @typescript-eslint/ban-types -- Just passing it
contents(): Buffer {
Copy link
Member

Choose a reason for hiding this comment

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

Buffer is a Uint8Array subclass, so you could just use

Suggested change
contents(): Buffer {
contents(): Uint8Array {

here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Buffer has an includes(string) method but Uint8Array doesn't. Since that's what I'm using it for, I'll keep Buffer for now so I can merge this. Happy to change it if there's a similar method that doesn't require conversions. Maybe later I'll just read it as utf-8 instead

@fregante fregante enabled auto-merge (squash) May 30, 2024 08:01
@fregante fregante added the meta Related to Refined GitHub itself label May 30, 2024
This reverts commit b756861.
@fregante fregante merged commit f23784f into main May 31, 2024
9 of 10 checks passed
@fregante fregante deleted the xo branch May 31, 2024 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to Refined GitHub itself
Development

Successfully merging this pull request may close these issues.

None yet

3 participants