mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-09 13:47:11 +02:00
remove useless returned variable
This commit is contained in:
parent
93ab892bdd
commit
a5adfaee8a
@ -46,10 +46,7 @@ func NewApp(config config.AppConfigurer) (*App, error) {
|
|||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
app.Log = newLogger(config)
|
app.Log = newLogger(config)
|
||||||
app.OSCommand, err = commands.NewOSCommand(app.Log)
|
app.OSCommand = commands.NewOSCommand(app.Log)
|
||||||
if err != nil {
|
|
||||||
return app, err
|
|
||||||
}
|
|
||||||
|
|
||||||
app.Tr = i18n.NewLocalizer(app.Log)
|
app.Tr = i18n.NewLocalizer(app.Log)
|
||||||
|
|
||||||
|
@ -30,12 +30,11 @@ type OSCommand struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewOSCommand os command runner
|
// NewOSCommand os command runner
|
||||||
func NewOSCommand(log *logrus.Logger) (*OSCommand, error) {
|
func NewOSCommand(log *logrus.Logger) *OSCommand {
|
||||||
osCommand := &OSCommand{
|
return &OSCommand{
|
||||||
Log: log,
|
Log: log,
|
||||||
Platform: getPlatform(),
|
Platform: getPlatform(),
|
||||||
}
|
}
|
||||||
return osCommand, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RunCommandWithOutput wrapper around commands returning their output and error
|
// RunCommandWithOutput wrapper around commands returning their output and error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user