Skip to content

Commit 08b98d1

Browse files
jasnellMylesBorins
authored andcommitted
src: fix odd linting issue
The prior commit causes a linting issue here. Fix by changing from a struct to a class. PR-URL: #20789 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 36d4a42 commit 08b98d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,8 @@ node_module* get_linked_module(const char* name) {
20772077
return FindModule(modlist_linked, name, NM_F_LINKED);
20782078
}
20792079

2080-
struct DLib {
2080+
class DLib {
2081+
public:
20812082
#ifdef __POSIX__
20822083
static const int kDefaultFlags = RTLD_LAZY;
20832084
#else
@@ -2098,7 +2099,7 @@ struct DLib {
20982099
#ifndef __POSIX__
20992100
uv_lib_t lib_;
21002101
#endif
2101-
2102+
private:
21022103
DISALLOW_COPY_AND_ASSIGN(DLib);
21032104
};
21042105

0 commit comments

Comments
 (0)