Skip to content

Commit 2e7fc81

Browse files
authored
Merge pull request #88740 from dsnopek/webxr-linting-issues
Fix lint errors in WebXR module
2 parents 3abb326 + fa81e12 commit 2e7fc81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/static_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
7777
- name: JavaScript style and documentation checks via ESLint and JSDoc
7878
run: |
79-
if grep -q "platform/web" changed.txt || [ -z "$(cat changed.txt)" ]; then
79+
if grep -q "\.js" changed.txt || [ -z "$(cat changed.txt)" ]; then
8080
cd platform/web
8181
npm ci
8282
npm run lint

modules/webxr/native/library_godot_webxr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ const GodotWebXR = {
319319
// next reference space.
320320
window.setTimeout(function () {
321321
const reference_space_c_str = GodotRuntime.allocString(reference_space_type);
322-
const enabled_features_c_str = GodotRuntime.allocString(Array.from(session.enabledFeatures).join(","));
322+
const enabled_features_c_str = GodotRuntime.allocString(Array.from(session.enabledFeatures).join(','));
323323
onstarted(reference_space_c_str, enabled_features_c_str);
324324
GodotRuntime.free(reference_space_c_str);
325325
GodotRuntime.free(enabled_features_c_str);
@@ -567,7 +567,7 @@ const GodotWebXR = {
567567

568568
// Hand tracking data.
569569
let has_hand_data = false;
570-
if (input_source.hand && r_hand_joints != 0 && r_hand_radii != 0) {
570+
if (input_source.hand && r_hand_joints !== 0 && r_hand_radii !== 0) {
571571
const hand_joint_array = new Float32Array(25 * 16);
572572
const hand_radii_array = new Float32Array(25);
573573
if (frame.fillPoses(input_source.hand.values(), space, hand_joint_array) && frame.fillJointRadii(input_source.hand.values(), hand_radii_array)) {

0 commit comments

Comments
 (0)