mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Retrun false
This commit is contained in:
@@ -3,7 +3,7 @@ import { pullChanges, commitAndPush } from '../services/api';
|
||||
|
||||
export const useGitOperations = (gitEnabled) => {
|
||||
const pullLatestChanges = useCallback(async () => {
|
||||
if (!gitEnabled) return;
|
||||
if (!gitEnabled) return false;
|
||||
try {
|
||||
await pullChanges();
|
||||
return true;
|
||||
@@ -15,7 +15,7 @@ export const useGitOperations = (gitEnabled) => {
|
||||
|
||||
const handleCommitAndPush = useCallback(
|
||||
async (message) => {
|
||||
if (!gitEnabled) return;
|
||||
if (!gitEnabled) return false;
|
||||
try {
|
||||
await commitAndPush(message);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user