Fix: unnecessary parentheses around if
condition
This commit is contained in:
parent
930a7ecc3f
commit
3ed431ad5f
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ impl<'a> FileHeaderParser<'a> for JsonHeaderParser<'a> {
|
|||
fn read(&self, string: Option<String>)
|
||||
-> Result<FileHeaderData, ParserError>
|
||||
{
|
||||
if (string.is_some()) {
|
||||
if string.is_some() {
|
||||
let s = string.unwrap();
|
||||
debug!("Deserializing: {}", s);
|
||||
let fromstr : R<Value> = from_str(&s[..]);
|
||||
|
|
Loading…
Reference in a new issue