style: fix formatting and indentation consistency

- Remove extra blank lines and fix indentation in test files
- Ensure consistent struct field alignment in git types
This commit is contained in:
carraes
2025-07-05 23:44:48 -03:00
parent ca7821b015
commit 48848b2cbd
3 changed files with 18 additions and 25 deletions
-2
View File
@@ -93,7 +93,6 @@ func TestGitFlagValidation(t *testing.T) {
}
}
func validateGitFlags(cli types.CLI) error {
gitFlags := []bool{cli.ChangesOnly, cli.Staged, cli.Unstaged}
@@ -119,7 +118,6 @@ func validateGitFlags(cli types.CLI) error {
return nil
}
type GitFlagError struct {
message string
}
-1
View File
@@ -118,7 +118,6 @@ func TestIsInLineRanges(t *testing.T) {
func TestIsInLineRangesEmptyRanges(t *testing.T) {
var emptyRanges []LineRange
testLines := []int{1, 5, 10, 100}
for _, lineNum := range testLines {
result := IsInLineRanges(lineNum, emptyRanges)
-4
View File
@@ -1,12 +1,10 @@
package git
type GitStatus struct {
IsRepo bool
RootDir string
}
type FileStatus int
const (
@@ -15,14 +13,12 @@ const (
StatusUntracked
)
type FileChange struct {
Path string
Status FileStatus
LineRanges []LineRange
}
type LineRange struct {
Start int
End int