diff options
| author | Jon duSaint | 2023-09-16 09:24:03 -0700 |
|---|---|---|
| committer | Jon duSaint | 2023-09-16 09:24:03 -0700 |
| commit | 5f3dc020f0164ef0ae833b07463a40c9c44ae0b6 (patch) | |
| tree | 01875fac42277bd3aa7c57dbf142da883055cdd2 | |
| parent | af3fe6aa15126e10b7e3e8fe67e0d5b28c63f0c2 (diff) | |
Reolink.pm: Clean up args in new
Make the previous change here more tidy.
| -rw-r--r-- | reolink/Reolink.pm | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/reolink/Reolink.pm b/reolink/Reolink.pm index ea95c4f..56b78c5 100644 --- a/reolink/Reolink.pm +++ b/reolink/Reolink.pm @@ -107,16 +107,11 @@ sub new { pass => $args{pass} // $args{password} // $default_pass, proto => $args{proto} // $default_proto, token => undef, - errors => 0 + errors => 0, + image_quality_workaround => $args{image_quality_workaround} ? 1 : 0, + debug => $args{debug} ? 1 : 0 }; - if ($args{image_quality_workaround}) { - $this->{image_quality_workaround} = 1; - } - if ($args{debug}) { - $this->{debug} = 1; - } - make_url ($this); bless $this, $class; |
