Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit c7436f7

Browse files
committed
passim: fix coding style violations
1 parent 5b547de commit c7436f7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/Layout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,7 +2165,7 @@ BitField.prototype.encode = function(value) {
21652165
*/
21662166
function Boolean(container, property) {
21672167
BitField.call(this, container, 1, property);
2168-
};
2168+
}
21692169
util.inherits(Boolean, BitField);
21702170
/** Override {@link BitField#decode|decode} for {@link Boolean|Boolean}.
21712171
*
@@ -2180,7 +2180,7 @@ Boolean.prototype.encode = function(value) {
21802180
value = +value;
21812181
}
21822182
return BitField.prototype.encode.call(this, value);
2183-
}
2183+
};
21842184

21852185
/**
21862186
* Contain a fixed-length block of arbitrary data, represented as a

test/LayoutTest.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ suite('Layout', function() {
18641864
assert.deepEqual(po, p);
18651865
});
18661866
test('bits', function() {
1867-
function Header() { };
1867+
function Header() { }
18681868
Header.prototype.power = function() {
18691869
return ['off', 'lo', 'med', 'hi'][this.pwr];
18701870
};
@@ -1883,25 +1883,25 @@ suite('Layout', function() {
18831883
assert.equal(b.compare(nb), 0);
18841884
});
18851885
test('union', function() {
1886-
function Union() { };
1886+
function Union() { }
18871887
lo.bindConstructorLayout(Union, lo.union(lo.u8('var'), lo.blob(8, 'unk')));
18881888
function VFloat(v) {
18891889
this.f32 = v;
1890-
};
1890+
}
18911891
util.inherits(VFloat, Union);
18921892
lo.bindConstructorLayout(VFloat,
18931893
Union.layout_.addVariant(1, lo.f32(), 'f32'));
18941894
function VCStr(v) {
18951895
this.text = v;
1896-
};
1896+
}
18971897
util.inherits(VCStr, Union);
18981898
lo.bindConstructorLayout(VCStr,
18991899
Union.layout_.addVariant(2, lo.cstr(), 'text'));
19001900
function Struct(u32, u16, s16) {
19011901
this.u32 = u32;
19021902
this.u16 = u16;
19031903
this.s16 = s16;
1904-
};
1904+
}
19051905
function VStruct(v) {
19061906
this.struct = v;
19071907
}

0 commit comments

Comments
 (0)