Skip to content

Commit a36c006

Browse files
committed
Use the inline export keyword
1 parent bda8a7e commit a36c006

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bert.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const BERT_TOKENS = {
5151
* can be strings or binaries or atoms. Don't even get me started on numbers.
5252
* Forcing explicit typing like this causes less errors during encoding.
5353
*/
54-
class BertObj {
54+
export class BertObj {
5555
constructor(type, value) {
5656
this.type = type
5757
this.value = value
@@ -65,7 +65,7 @@ class BertObj {
6565
* one byte of data, or an array, with each element being one byte of data. The
6666
* encoding process will generate an array of byte data given a BertObj object.
6767
*/
68-
class Bert {
68+
export default class Bert {
6969
static Nil() { return new BertObj("Nil", []) }
7070
static Int(value) { return new BertObj("Int", value) }
7171
static Float(value) { return new BertObj("NewFloat", value) }
@@ -482,5 +482,3 @@ class Bert {
482482
throw "Your data is too long. Seriously, way too long."
483483
}
484484
}
485-
486-
export default Bert

0 commit comments

Comments
 (0)