Skip to content

Commit c68e6e1

Browse files
committed
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 fbd1c49 commit c68e6e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,8 @@ node_module* get_linked_module(const char* name) {
20632063
return FindModule(modlist_linked, name, NM_F_LINKED);
20642064
}
20652065

2066-
struct DLib {
2066+
class DLib {
2067+
public:
20672068
#ifdef __POSIX__
20682069
static const int kDefaultFlags = RTLD_LAZY;
20692070
#else
@@ -2084,7 +2085,7 @@ struct DLib {
20842085
#ifndef __POSIX__
20852086
uv_lib_t lib_;
20862087
#endif
2087-
2088+
private:
20882089
DISALLOW_COPY_AND_ASSIGN(DLib);
20892090
};
20902091

0 commit comments

Comments
 (0)