Skip to content

Commit dfb4943

Browse files
GeekMasherCopilot
andauthored
Update src/main.rs
Co-authored-by: Copilot <[email protected]>
1 parent 5871c36 commit dfb4943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ async fn main() -> Result<()> {
285285
// If the action is running in Actions, the SARIF file must be a relative path
286286
// This is because we assume that this code is running in a container which mounts
287287
// the repository at /github/workspace
288-
if let Ok(_) = std::env::var("CI") {
288+
if std::env::var("CI").is_ok() {
289289
// If running in a CI environment, set the SARIF as a relative path
290290
let relative_path = sarif_output.strip_prefix(&cwd).unwrap_or(&sarif_output);
291291
log::debug!(

0 commit comments

Comments
 (0)