mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-11 09:29:33 +00:00
Code cleanup
This commit is contained in:
parent
852c803e64
commit
fd7fba0b2f
|
@ -72,13 +72,10 @@ bool SCSIPrinter::Init(const map<string, string>& params)
|
|||
// Use default parameters if no parameters were provided
|
||||
SetParams(params.empty() ? GetDefaultParams() : params);
|
||||
|
||||
int t;
|
||||
if (!GetAsInt(GetParam("timeout"), t) || t <= 0) {
|
||||
if (!GetAsInt(GetParam("timeout"), timeout) || timeout <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
timeout = t;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user