Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protobuf-solidity/src/protoc/plugin/gen_sol.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def get_location_option(f: FileDescriptor) -> str:

def extract_npm_package_name_and_directory_path(location: str) -> Tuple[str, str]:
parts = location.split('/')
if location[0] == '@':
if location and location[0] == '@':
return '/'.join(parts[:2]), '/'.join(parts[2:])
else:
return parts[0], '/'.join(parts[1:])
Expand Down