lazygit/pkg/commands/hosting_service
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
..
definitions.go Update gitlab commit URL to match new routing 2023-05-22 07:39:47 +03:30
hosting_service.go Remove redundant len check 2023-10-04 21:03:26 +08:00
hosting_service_test.go Allow port in webDomain for services config values 2023-08-21 14:33:58 +03:00