Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 726e3e7

Browse files
author
exoego
committed
Update scalafmt-core and apply changes.
1 parent 11c2392 commit 726e3e7

File tree

143 files changed

+1
-370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+1
-370
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "2.2.1"
1+
version = "2.2.2"
22
style = defaultWithAlign
33
maxColumn = 120
44
align.openParenDefnSite = true

app/current/src/main/scala/io/scalajs/nodejs/Assert.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import scala.scalajs.js.|
1717
*/
1818
@js.native
1919
trait Assert extends IEventEmitter {
20-
2120
/**
2221
* An alias of assert.ok() .
2322
* @param expression the expression to evaluate

app/current/src/main/scala/io/scalajs/nodejs/Error.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import scala.scalajs.js.annotation.{JSGlobal, JSImport}
1414
@js.native
1515
@JSImport("errors", "Error")
1616
class Error(message0: String = js.native) extends js.Object {
17-
1817
/**
1918
* The `error.code` property is a string label that identifies the kind of error.
2019
* `error.code` is the most stable way to identify an error.
@@ -36,7 +35,6 @@ class Error(message0: String = js.native) extends js.Object {
3635
* The error.stack property is a string describing the point in the code at which the Error was instantiated.
3736
*/
3837
val stack: js.Any = js.native
39-
4038
}
4139

4240
/**
@@ -45,7 +43,6 @@ class Error(message0: String = js.native) extends js.Object {
4543
@js.native
4644
@JSGlobal
4745
object Error extends js.Object {
48-
4946
/////////////////////////////////////////////////////////////////////////////////
5047
// Properties
5148
/////////////////////////////////////////////////////////////////////////////////
@@ -71,7 +68,6 @@ object Error extends js.Object {
7168
* @example Error.captureStackTrace(targetObject[, constructorOpt])
7269
*/
7370
def captureStackTrace(targetObject: js.Any, constructorOpt: js.Any = js.native): Unit = js.native
74-
7571
}
7672

7773
object ErrorCodes {

app/current/src/main/scala/io/scalajs/nodejs/Module.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import scala.scalajs.js.annotation.JSImport
1313
*/
1414
@js.native
1515
trait Module extends js.Object {
16-
1716
/**
1817
* The module objects required by this one.
1918
* @example module.children
@@ -62,7 +61,6 @@ trait Module extends js.Object {
6261
* explicitly exported in order to be used.
6362
*/
6463
def require[T <: js.Any](id: String): T = js.native
65-
6664
}
6765

6866
/**
@@ -71,7 +69,6 @@ trait Module extends js.Object {
7169
@js.native
7270
@JSImport("module", JSImport.Namespace)
7371
object Module extends Module {
74-
7572
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs10)
7673
var builtinModules: js.Array[String] = js.native
7774

app/current/src/main/scala/io/scalajs/nodejs/StringDecoder.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import scala.scalajs.js.|
1414
@js.native
1515
@JSImport("string_decoder", "StringDecoder")
1616
class StringDecoder(encoding: String = js.native) extends IEventEmitter {
17-
1817
/**
1918
* Returns any trailing bytes that were left in the buffer.
2019
* @example decoder.end()
@@ -26,5 +25,4 @@ class StringDecoder(encoding: String = js.native) extends IEventEmitter {
2625
* @example decoder.write(buffer)
2726
*/
2827
def write(buffer: TypedArray[_, _] | DataView): String = js.native
29-
3028
}

app/current/src/main/scala/io/scalajs/nodejs/SystemError.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import scala.scalajs.js.|
1010
@js.native
1111
@JSImport("errors", "SystemError")
1212
class SystemError(message0: String = js.native) extends Error(message0) {
13-
1413
/**
1514
* The error.errno property is a number or a string. The number is a negative value which corresponds
1615
* to the error code defined in libuv Error handling. See uv-errno.h header file (deps/uv/include/uv-errno.h

app/current/src/main/scala/io/scalajs/nodejs/buffer/Buffer.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import scala.scalajs.js.|
1313
@js.native
1414
@JSImport("buffer", "Buffer")
1515
class Buffer private[this] () extends Uint8Array( /* dummy to trick constructor */ -1) {
16-
1716
/**
1817
* The index operator `[index]` can be used to get and set the octet at position `index` in `buf`.
1918
* The values refer to individual bytes, so the legal value range is between `0x00` and `0xFF` (hex) or

app/current/src/main/scala/io/scalajs/nodejs/buffer/package.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import scala.scalajs.js.typedarray.Uint8Array
88
* buffer package object
99
*/
1010
package object buffer {
11-
1211
/////////////////////////////////////////////////////////////////////////////////
1312
// Buffer Extensions
1413
/////////////////////////////////////////////////////////////////////////////////
@@ -17,7 +16,6 @@ package object buffer {
1716
* Buffer Extensions
1817
*/
1918
implicit final class BufferExtensions(val buffer: Buffer) extends AnyVal {
20-
2119
/**
2220
* Syntactic sugar for concatenating a buffer
2321
*
@@ -104,7 +102,6 @@ package object buffer {
104102
@js.native
105103
@JSImport("buffer", "constants")
106104
object constants extends js.Object {
107-
108105
/**
109106
* The largest size allowed for a single `Buffer` instance.
110107
*
@@ -124,5 +121,4 @@ package object buffer {
124121
*/
125122
val MAX_STRING_LENGTH: Int = js.native
126123
}
127-
128124
}

app/current/src/main/scala/io/scalajs/nodejs/child_process/ChildProcess.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@ object ChildProcess extends scala.scalajs.js.Object {
8989
args: js.Array[String] = js.native,
9090
options: SpawnSyncOptions = js.native
9191
): SpawnSyncResult = js.native
92-
9392
}

app/current/src/main/scala/io/scalajs/nodejs/cluster/Address.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import scala.scalajs.js.|
55

66
@js.native
77
trait Address extends js.Object {
8-
98
def address: String = js.native
109

1110
def port: Int = js.native
@@ -18,5 +17,4 @@ trait Address extends js.Object {
1817
* "udp4" or "udp6" (UDP v4 or v6)
1918
*/
2019
def addressType: String | Int = js.native
21-
2220
}

0 commit comments

Comments
 (0)