Skip to content

Commit fb9231e

Browse files
committed
linter... grmbl
1 parent be8d425 commit fb9231e

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

internal/cmd/db_shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ var shellCmd = &cobra.Command{
219219
}
220220

221221
if db != nil && db.Sleeping {
222-
return fmt.Errorf("Your DB might be archived. Please run `turso group unarchive %s` to unarchive it", db.Group)
222+
return fmt.Errorf("your DB might be archived, please run `turso group unarchive %s` to unarchive it", db.Group)
223223
}
224224
connectionInfo := getConnectionInfo(urlString, db)
225225
schemaDb := false

internal/turso/tursoServer.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,7 @@ func (i *TursoServerClient) startMultipartUpload(dbSize int64) (multipartUploadS
355355
return multipartUploadStart{}, fmt.Errorf("failed to decode multipart upload response: %w", err)
356356
}
357357

358-
return multipartUploadStart{
359-
ChunkSize: uploadResp.ChunkSize,
360-
UploadID: uploadResp.UploadID,
361-
}, nil
358+
return multipartUploadStart(uploadResp), nil
362359
}
363360

364361
func (i *TursoServerClient) uploadChunks(uploadID string, chunkSize int64, file *os.File, totalSize int64, startTime time.Time, remoteEncryptionCipher, remoteEncryptionKey string, onUploadProgress func(progressPct int, uploadedBytes int64, totalBytes int64, elapsedTime time.Duration, done bool)) (int64, error) {

internal/turso/tursoServer_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,6 @@ func createTestFile(t *testing.T, size int64) string {
173173
return createTestFileWithContent(t, content)
174174
}
175175

176-
// createEmptyFile creates an empty temp file
177-
func createEmptyFile(t *testing.T) string {
178-
t.Helper()
179-
return createTestFileWithContent(t, []byte{})
180-
}
181-
182176
// createTestClient creates a TursoServerClient pointing to the mock server
183177
func createTestClient(t *testing.T, serverURL string) *TursoServerClient {
184178
t.Helper()

0 commit comments

Comments
 (0)