mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: avoid double '.' in trap extension
This commit is contained in:
@@ -244,7 +244,7 @@ impl TrapFileProvider {
|
||||
}
|
||||
|
||||
pub fn create(&self, category: &str, key: &Path) -> TrapFile {
|
||||
let path = file_paths::path_for(&self.trap_dir.join(category), key, ".trap");
|
||||
let path = file_paths::path_for(&self.trap_dir.join(category), key, "trap");
|
||||
debug!("creating trap file {}", path.display());
|
||||
let mut writer = trap::Writer::new();
|
||||
extractor::populate_empty_location(&mut writer);
|
||||
|
||||
Reference in New Issue
Block a user