refactor: optimize boolean expression in publish command

This commit is contained in:
daimond113 2024-10-20 18:15:14 +02:00
parent 70d07feb70
commit d346fe1d34
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Performance ### Performance
- Clone dependency repos shallowly by @daimond113 - Clone dependency repos shallowly by @daimond113
### Changed
- Optimize boolean expression in `publish` command by @daimond113
## [0.5.0-rc.6] - 2024-10-14 ## [0.5.0-rc.6] - 2024-10-14
### Added ### Added
- Support full version requirements in workspace version field by @daimond113 - Support full version requirements in workspace version field by @daimond113

View file

@ -64,7 +64,7 @@ impl PublishCommand {
manifest.target, manifest.target,
Target::Roblox { .. } | Target::RobloxServer { .. } Target::Roblox { .. } | Target::RobloxServer { .. }
) { ) {
if !manifest.target.build_files().is_some_and(|f| !f.is_empty()) { if manifest.target.build_files().is_none_or(|f| f.is_empty()) {
anyhow::bail!("no build files found in target"); anyhow::bail!("no build files found in target");
} }