Skip to content

Commit

Permalink
simpler check
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Jan 16, 2025
1 parent 6427eeb commit d221af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SafeDITool/SafeDITool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct SafeDITool: AsyncParsableCommand, Sendable {
// MARK: Internal

func run() async throws {
if swiftSourcesFilePath == nil, include.isEmpty, includeFilePath?.isEmpty ?? true {
if swiftSourcesFilePath == nil, include.isEmpty, includeFilePath == nil {
throw ValidationError("Must provide 'swift-sources-file-path', '--include', or '--include-file-path'.")
}

Expand Down

0 comments on commit d221af3

Please sign in to comment.