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

Fix compilation warnings #104

Merged
merged 5 commits into from
May 30, 2022
Merged

Conversation

sake92
Copy link
Collaborator

@sake92 sake92 commented May 27, 2022

No description provided.

Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

Fixing warnings is great! I added some minor comments/questions.

os/src/ListOps.scala Outdated Show resolved Hide resolved
os/src/ReadWriteOps.scala Outdated Show resolved Hide resolved
os/test/src-jvm/ExampleTests.scala Show resolved Hide resolved
@@ -15,12 +15,12 @@ import java.nio.file.attribute.BasicFileAttributes
* them. You can disable sorted by passing in the flag `sort = false`.
*/
object list extends Function1[Path, IndexedSeq[Path]] {
def apply(src: Path, sort: Boolean = true) = {
def apply(src: Path, sort: Boolean = true): Array[Path] = {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this one also return a IndexedSeq[Path]? The other apply and the inherited Functiona1 suggests it.

Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

@lefou lefou merged commit 84bf872 into com-lihaoyi:master May 30, 2022
@lefou lefou added this to the after 0.8.0 milestone May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants