Skip to content

Commit 7fef973

Browse files
authored
fix: fix -Wextra-semi (#1718)
1 parent 845ba8e commit 7fef973

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

napi.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ class BasicEnv {
359359
// ... occurs when comparing foo.Env() == bar.Env() or foo.Env() == nullptr
360360
bool operator==(const BasicEnv& other) const {
361361
return _env == other._env;
362-
};
362+
}
363363
bool operator==(std::nullptr_t /*other*/) const {
364364
return _env == nullptr;
365-
};
365+
}
366366

367367
#if NAPI_VERSION > 2
368368
template <typename Hook, typename Arg = void>
@@ -3126,8 +3126,8 @@ class AsyncProgressWorkerBase : public AsyncWorker {
31263126

31273127
AsyncProgressWorkerBase* asyncprogressworker() {
31283128
return _asyncprogressworker;
3129-
};
3130-
DataType* data() { return _data; };
3129+
}
3130+
DataType* data() { return _data; }
31313131

31323132
private:
31333133
AsyncProgressWorkerBase* _asyncprogressworker;

0 commit comments

Comments
 (0)