mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 00:21:47 +03:00
Merge pull request #173 from AleoHQ/refactoring
Remove unnecessary logical statement
This commit is contained in:
commit
8f37a9d788
@ -121,18 +121,13 @@ fn is_excluded(path: &Path) -> bool {
|
|||||||
// excluded extensions: `.in`, `.bytes`, `lpk`, `lvk`, `.proof`, `.sum`
|
// excluded extensions: `.in`, `.bytes`, `lpk`, `lvk`, `.proof`, `.sum`
|
||||||
path.extension()
|
path.extension()
|
||||||
.map(|ext| {
|
.map(|ext| {
|
||||||
if ext.eq(INPUT_FILE_EXTENSION.trim_start_matches("."))
|
ext.eq(INPUT_FILE_EXTENSION.trim_start_matches("."))
|
||||||
| ext.eq(ZIP_FILE_EXTENSION.trim_start_matches("."))
|
| ext.eq(ZIP_FILE_EXTENSION.trim_start_matches("."))
|
||||||
| ext.eq(PROVING_KEY_FILE_EXTENSION.trim_start_matches("."))
|
| ext.eq(PROVING_KEY_FILE_EXTENSION.trim_start_matches("."))
|
||||||
| ext.eq(VERIFICATION_KEY_FILE_EXTENSION.trim_start_matches("."))
|
| ext.eq(VERIFICATION_KEY_FILE_EXTENSION.trim_start_matches("."))
|
||||||
| ext.eq(PROOF_FILE_EXTENSION.trim_start_matches("."))
|
| ext.eq(PROOF_FILE_EXTENSION.trim_start_matches("."))
|
||||||
| ext.eq(CHECKSUM_FILE_EXTENSION.trim_start_matches("."))
|
| ext.eq(CHECKSUM_FILE_EXTENSION.trim_start_matches("."))
|
||||||
| ext.eq(ZIP_FILE_EXTENSION.trim_start_matches("."))
|
| ext.eq(ZIP_FILE_EXTENSION.trim_start_matches("."))
|
||||||
{
|
|
||||||
true
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user