We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4208d18 commit c694ea6Copy full SHA for c694ea6
crates/forge/src/cmd/build.rs
@@ -176,8 +176,12 @@ impl BuildArgs {
176
177
let solar_sources =
178
get_solar_sources_from_compile_output(config, output, Some(&input_files))?;
179
- if solar_sources.input.sources.is_empty() && !input_files.is_empty() {
180
- sh_warn!("unable to lint. Solar only supports Solidity versions prior to 0.8.0")?;
+ if solar_sources.input.sources.is_empty() {
+ if !input_files.is_empty() {
181
+ sh_warn!(
182
+ "unable to lint. Solar only supports Solidity versions prior to 0.8.0"
183
+ )?;
184
+ }
185
return Ok(());
186
}
187
0 commit comments