jesseduffield.lazygit/pkg
Eng Zer Jun deed9eb18e
Remove redundant len check
From the Go specification [1]:

  "3. If the map is nil, the number of iterations is 0."

`len` returns 0 if the map is nil [2]. Therefore, checking `len(v) > 0`
before a loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range
[2]: https://pkg.go.dev/builtin#len

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-04 21:03:26 +08:00
..
app respect and env vars 2023-09-25 12:20:12 +02:00
cheatsheet Use go:generate for generating cheatsheets 2023-09-29 20:38:29 +02:00
commands Remove redundant len check 2023-10-04 21:03:26 +08:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Add Micro editor preset 2023-10-03 19:42:28 +02:00
constants update release notes 2021-04-20 18:34:47 +10:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Band-aid fix for submodule/reset.go test failure 2023-10-03 09:36:46 +02:00
i18n Use upstream branch when opening pull requests (#2693) 2023-09-25 11:03:15 +10:00
integration Make test_list_generator.go print what it's doing 2023-09-29 20:40:15 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Remove secureexec package 2023-07-30 19:59:51 +10:00
theme Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Add constant for LoaderAnimationInterval 2023-09-20 13:30:49 +02:00