Skip to content

Commit

Permalink
Update Plugins/GRPCProtobufGenerator/Plugin.swift
Browse files Browse the repository at this point in the history
Co-authored-by: George Barnett <[email protected]>
  • Loading branch information
rnro and glbrntt authored Jan 21, 2025
1 parent fe732a8 commit 86f8893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugins/GRPCProtobufGenerator/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ struct GRPCProtobufGenerator {

let protocPath = try deriveProtocPath(using: config, tool: tool)
let protoDirectoryPaths: [String]
if !config.importPaths.isEmpty {
protoDirectoryPaths = config.importPaths
} else {
if config.importPaths.isEmpty {
protoDirectoryPaths = [configFilePath.deletingLastPathComponent().absoluteStringNoScheme]
} else {
protoDirectoryPaths = config.importPaths
}

// unless *explicitly* opted-out
Expand Down

0 comments on commit 86f8893

Please sign in to comment.