mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
- Fixed unused variable warnings (ring_h, cwd, command) - Fixed unused field warning (_server) - Handled unused AppEvent variants properly - Added #[allow(dead_code)] for utility modules that may be used later - All warnings resolved while maintaining functionality
11 lines
283 B
JavaScript
11 lines
283 B
JavaScript
// Test script without IIFE that should also return a value
|
|
function findElement() {
|
|
const el = document.querySelector('body');
|
|
if (!el) {
|
|
return { ok: false, reason: 'no-body' };
|
|
}
|
|
return { ok: true, tag: el.tagName };
|
|
}
|
|
|
|
const result = findElement();
|
|
result |