1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

simplify default path

This commit is contained in:
William Ting 2014-03-21 18:56:23 -05:00
parent 72313dbc51
commit bc91905a29

View File

@ -382,8 +382,7 @@ def main(args): # noqa
elif args.stat:
print_stats(load(config), config['data_path'])
elif not args.directory:
# default return value so calling shell functions have an argument
# to `cd` to
# always return a path to calling shell functions
print_local('.')
else:
entries = entriefy(load(config))
@ -404,8 +403,8 @@ def main(args): # noqa
first(
chain(
find_matches(entries, needles),
# always return n argument to calling shell functions
[Entry('.', 0)])).path)
# always return a path to calling shell functions
['.'])))
return 0