Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

rpi-gpio.js: Failsafe match of cpuinfo#1

Open
leon-anavi wants to merge 1 commit intopebblecode:masterfrom
leon-anavi:match-regex
Open

rpi-gpio.js: Failsafe match of cpuinfo#1
leon-anavi wants to merge 1 commit intopebblecode:masterfrom
leon-anavi:match-regex

Conversation

@leon-anavi
Copy link

Set default values and avoid the following error if match()
method returns null when checking the cpuinfo:

TypeError: Cannot read property '1' of null

Signed-off-by: Leon Anavi leon@anavi.org

Set default values and avoid the following error if match()
method returns null when checking the cpuinfo:

TypeError: Cannot read property '1' of null

Signed-off-by: Leon Anavi <leon@anavi.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant