Skip to content

Commit 755df3d

Browse files
committed
test: update steampipe matcher test
1 parent 9c64de9 commit 755df3d

File tree

1 file changed

+3
-3
lines changed
  • postgresql_extensions/src/repository/steampipe

1 file changed

+3
-3
lines changed

postgresql_extensions/src/repository/steampipe/matcher.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ use url::Url;
1010
/// * If the asset matcher fails.
1111
#[allow(clippy::unnecessary_wraps)]
1212
pub fn matcher(url: &str, name: &str, _version: &Version) -> Result<bool> {
13-
if !name.starts_with("steampipe_postgres_") {
14-
return Ok(false);
15-
}
1613
let Ok(url) = Url::parse(url) else {
1714
return Ok(false);
1815
};
@@ -24,6 +21,9 @@ pub fn matcher(url: &str, name: &str, _version: &Version) -> Result<bool> {
2421
None => return Ok(false),
2522
Some((major, _)) => major,
2623
};
24+
if !name.starts_with("steampipe_postgres_") {
25+
return Ok(false);
26+
}
2727
let os = match consts::OS {
2828
"macos" => "darwin",
2929
_ => "linux",

0 commit comments

Comments
 (0)