Skip to content

Commit 86f8893

Browse files
rnroglbrntt
andauthored
Update Plugins/GRPCProtobufGenerator/Plugin.swift
Co-authored-by: George Barnett <[email protected]>
1 parent fe732a8 commit 86f8893

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugins/GRPCProtobufGenerator/Plugin.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ struct GRPCProtobufGenerator {
8383

8484
let protocPath = try deriveProtocPath(using: config, tool: tool)
8585
let protoDirectoryPaths: [String]
86-
if !config.importPaths.isEmpty {
87-
protoDirectoryPaths = config.importPaths
88-
} else {
86+
if config.importPaths.isEmpty {
8987
protoDirectoryPaths = [configFilePath.deletingLastPathComponent().absoluteStringNoScheme]
88+
} else {
89+
protoDirectoryPaths = config.importPaths
9090
}
9191

9292
// unless *explicitly* opted-out

0 commit comments

Comments
 (0)