mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-01-11 08:14:43 +01:00
Fix formatting in setupTestCommand function
- Remove extra blank line after t.Helper() for Go formatting consistency Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com>
This commit is contained in:
@@ -181,7 +181,6 @@ func TestConvertCbzCommand(t *testing.T) {
|
|||||||
// - func(): A cleanup function that must be deferred to restore the original converter.Get
|
// - func(): A cleanup function that must be deferred to restore the original converter.Get
|
||||||
func setupTestCommand(t *testing.T) (*cobra.Command, func()) {
|
func setupTestCommand(t *testing.T) (*cobra.Command, func()) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
// Mock the converter.Get function
|
// Mock the converter.Get function
|
||||||
originalGet := converter.Get
|
originalGet := converter.Get
|
||||||
converter.Get = func(format constant.ConversionFormat) (converter.Converter, error) {
|
converter.Get = func(format constant.ConversionFormat) (converter.Converter, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user