You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/license.rs
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -139,8 +139,7 @@ impl Detector {
139
139
&& entry
140
140
.file_name()
141
141
.map(OsStr::to_string_lossy)
142
-
.map(is_license_file)
143
-
.unwrap_or_default()
142
+
.is_some_and(is_license_file)
144
143
})
145
144
.filter_map(|entry| {
146
145
let contents = fs::read_to_string(entry.as_path()).unwrap_or_default();// TODO Not too clean; we should possibly fail the function instead of silently skipping the file on error
0 commit comments