Skip to content

Commit ccad5d3

Browse files
committed
remove unncessary conditions
1 parent a580018 commit ccad5d3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

dsc_lib/src/security/authenticode.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ use std::{
1010
path::Path,
1111
ptr::{from_ref, null_mut},
1212
};
13-
#[cfg(windows)]
1413
use std::os::windows::ffi::OsStrExt;
15-
#[cfg(windows)]
1614
use windows::{
1715
core::{PCWSTR, PWSTR, GUID},
1816
Win32::{
@@ -34,7 +32,6 @@ use windows::{
3432
}
3533
}
3634
};
37-
#[cfg(windows)]
3835
use windows_result::HRESULT;
3936

4037
/// Check the Authenticode signature of a file.
@@ -48,7 +45,6 @@ use windows_result::HRESULT;
4845
/// * `Ok(())` if the file is signed and the signature is valid.
4946
/// * `Err(DscError)` if the file is not signed or the signature is invalid
5047
///
51-
#[cfg(windows)]
5248
pub fn check_authenticode(file_path: &Path) -> Result<(), DscError> {
5349
if is_file_checked(file_path) {
5450
return Ok(());

0 commit comments

Comments
 (0)