jesseduffield.lazygit/pkg/commands
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
..
git_commands Allow cherry-picking commits during a rebase 2023-09-18 10:50:19 +02:00
git_config Remove secureexec package 2023-07-30 19:59:51 +10:00
hosting_service Remove redundant len check 2023-10-04 21:03:26 +08:00
models Add "Show divergence from upstream" entry to Upstream menu in branches panel 2023-08-29 08:16:40 +02:00
oscommands Appease linter 2023-08-02 08:32:57 +10:00
patch Stop cycling hunks when reaching the end 2023-08-15 11:40:40 +02:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums more refactoring 2022-01-04 09:07:15 +11:00
git.go Don't pass ignoreWhitespace to git commands 2023-09-04 17:50:49 +02:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00
git_test.go Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00