Skip to content

Commit

Permalink
chore: remove type or default value when obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Jul 17, 2024
1 parent 2fb9a4f commit 76f23b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Home.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (home *Home) subscribeToTreeChanges() {
tableName := stateChange.Value.(string)

tab := home.TabbedPane.GetTabByName(tableName)
var table *ResultsTable = nil
var table *ResultsTable

if tab != nil {
table = tab.Content
Expand Down Expand Up @@ -230,7 +230,7 @@ func (home *Home) rightWrapperInputCapture(event *tcell.EventKey) *tcell.EventKe
func (home *Home) homeInputCapture(event *tcell.EventKey) *tcell.EventKey {
tab := home.TabbedPane.GetCurrentTab()

var table *ResultsTable = nil
var table *ResultsTable

if tab != nil {
table = tab.Content
Expand Down
4 changes: 2 additions & 2 deletions components/SQLEditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func openExternalEditor(s *SQLEditor) string {

// Function to select editor
func getEditor() string {
var editor string = os.Getenv("SQL_EDITOR")
editor := os.Getenv("SQL_EDITOR")
if editor == "" {
editor = os.Getenv("EDITOR")
}
Expand All @@ -164,7 +164,7 @@ func getEditor() string {

// Function to select terminal
func getTerminal() string {
var terminal string = os.Getenv("SQL_TERMINAL")
terminal := os.Getenv("SQL_TERMINAL")

if terminal == "" {
terminal = os.Getenv("TERMINAL")
Expand Down

0 comments on commit 76f23b2

Please sign in to comment.