Skip to content

Commit 68fd763

Browse files
committed
Remove a temporary variable
1 parent ee422ab commit 68fd763

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: v2/neweditor.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ func NewEditor(tty *vt100.TTY, c *vt100.Canvas, fnord FilenameOrData, lineNumber
193193
// Check if there is only one file in that directory
194194
matches, err := filepath.Glob(strings.TrimSuffix(e.filename, "/") + "/" + "*")
195195
if err == nil && len(matches) == 1 {
196-
found_filename := matches[0]
197-
fnord.filename = found_filename
198-
e.filename = found_filename
196+
fnord.filename = matches[0]
197+
e.filename = matches[0]
199198
} else {
200199
e.dirMode = true
201200
// TODO: Support opening directories and giving a GitHub-like overview of projects and the git status

0 commit comments

Comments
 (0)