Skip to content

Commit

Permalink
Merge pull request #3754 from uchitsa/3663-fail-on-warning-on
Browse files Browse the repository at this point in the history
bug(#3663): fix warnings for failOnWarning turn ON
  • Loading branch information
yegor256 authored Dec 25, 2024
2 parents 00e0ebf + 65d24e4 commit bf2b212
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions eo-runtime/src/main/eo/org/eolang/fs/file.eo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
+rt node eo2js-runtime:0.0.0
+version 0.0.0

# A file on the filesystem.
# The file object in the filesystem.
[path] > file
$.path > @

Expand Down Expand Up @@ -67,13 +67,13 @@
^
^

# Deletes the file and and returns `true`.
# Deletes the file and returns `true`.
#
# Attention! The object is for internal usage only, please
# don't use the object programmatically outside of `file` object.
[] > delete /org.eolang.true

# Get file size in bytes.
# Gets the file size and returns it in bytes.
[] > size /org.eolang.number

# Move current file to `target`, making and returning a new `file` from it.
Expand All @@ -89,7 +89,7 @@
# don't use the object programmatically outside of `file` object.
[] > move /org.eolang.string

# Convert the `file` to `path`.
# Convert the `file` to the `path`.
(QQ.fs.path ^.path).determined > [] > as-path

# Opens the file.
Expand Down
2 changes: 2 additions & 0 deletions eo-runtime/src/main/eo/org/eolang/fs/path.eo
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@
# | root relative | drive relative | other |
# | root relative | root relative | other |
# |--------------------|----------------|-------------------|
# URI Resolution Rules.
[other] > resolved
^.uri > uri-as-bytes!
^.separated-correctly other > valid-other!
Expand Down Expand Up @@ -523,6 +524,7 @@
# | "Hello, Jeff" | "Hello, Jeff" |
# | "" | "" |
# |------------------------------|--------------------|
# Extracting Directory Names from File Paths.
[] > dirname
^.uri > pth!
text > txt
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/org/eolang/math/e.eo
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
+package org.eolang.math
+version 0.0.0

# The Euler's number
# The Euler's number.
2.7182818284590452354 > e
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/org/eolang/math/real.eo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
+rt node eo2js-runtime:0.0.0
+version 0.0.0

# Real number.
# Returns a floating point number.
[num] > real
num > @
# Returns Euler's number raised to the power of a `num`.
Expand Down
4 changes: 2 additions & 2 deletions eo-runtime/src/main/eo/org/eolang/nan.eo
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
# Tests that $ >= x.
false > [x] > gte

# Multiplication of $ and x.
# Returns the multiplication of $ and x.
^ > [x] > times

# Sum of $ and x.
^ > [x] > plus

# Difference between $ and x.
# Returns the difference between $ and x.
^ > [x] > minus

# Quotient of the division of $ by x.
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/org/eolang/structs/list.eo
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[origin] > list
origin > @

# Is it empty?
# Is it empty?.
0.eq ^.origin.length > [] > is-empty

# Create a new list with this element added to the end of it.
Expand Down

0 comments on commit bf2b212

Please sign in to comment.