Browse Source

Removed undefined

Dave Solares 5 năm trước cách đây
mục cha
commit
8851bdac1b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/DeviceInput/deviceInputSystem.ts

+ 1 - 1
src/DeviceInput/deviceInputSystem.ts

@@ -70,7 +70,7 @@ export class DeviceInputSystem {
      * @param inputIndex Index of device input
      * @returns Current value of input
      */
-    public pollInput(deviceName: string, inputIndex: number): number | undefined {
+    public pollInput(deviceName: string, inputIndex: number): number {
         const device = this._inputs[deviceName];
 
         if (!device) {