Skip to content

Commit baace46

Browse files
committed
remove duplication of code
1 parent 2e50ac7 commit baace46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildroot/bin/use_example_configs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def main():
7070
arg = sys.argv[1]
7171
if ':' in arg:
7272
part1, part2 = arg.split(':', 1)
73-
config_path = 'examples/'+part2
73+
config_path = part2
7474
branch = part1
7575
else:
76-
config_path = 'examples/'+arg
77-
config_path = config_path.replace(' ', '%20')
76+
config_path = arg
77+
config_path = 'examples/'+config_path.replace(' ', '%20')
7878
else:
7979
config_path = "default"
8080

0 commit comments

Comments
 (0)